You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Logging/Implementation/ConsoleLogger.cs

25 lines
565 B

using System;
namespace ZeroLevel.Logging
{
public sealed class ConsoleLogger
: ILogger
{
public void Dispose()
{
}
public void Write(LogLevel level, string message)
{
if (level == LogLevel.Raw)
{
Console.WriteLine(message);
}
else
{
Console.WriteLine("[{0:dd'.'MM'.'yyyy HH':'mm':'ss} {1}] {2}",
DateTime.Now, LogLevelNameMapping.CompactName(level), message);
}
}
}
}

Powered by TurnKey Linux.