simplelogger/ConsoleLogReceiver.cs

21 lines
461 B
C#
Raw Normal View History

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}");
}
}
}