feat: Implement a modular skill system with hotword detection, streaming text output, and enhanced logging.
This commit is contained in:
15
Core/Logger.cs
Normal file
15
Core/Logger.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Toak.Core;
|
||||
|
||||
public static class Logger
|
||||
{
|
||||
public static bool Verbose { get; set; } = false;
|
||||
|
||||
public static void LogDebug(string message)
|
||||
{
|
||||
if (Verbose)
|
||||
{
|
||||
var logLine = $"[DEBUG] {DateTime.Now:HH:mm:ss.fff} - {message}";
|
||||
Console.WriteLine(logLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user