21 lines
461 B
C#
21 lines
461 B
C#
using System;
|
|
using SimpleLogger;
|
|
|
|
namespace SimpleLogger
|
|
{
|
|
public class ConsoleLogReceiver : ILogReceiver
|
|
{
|
|
public string Identifier => "Console Logger";
|
|
|
|
public LogLevel Level => LogLevel.DEBUG;
|
|
|
|
public void Flush()
|
|
{
|
|
}
|
|
|
|
public void LogMessage(string message, DateTime time, LogLevel level)
|
|
{
|
|
Console.WriteLine($"[{time.ToShortTimeString()}] [{level}]: {message}");
|
|
}
|
|
}
|
|
} |