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

26 lines
599 B

6 years ago
using System;
5 years ago
using ZeroLevel.Services.Logging;
6 years ago
5 years ago
namespace ZeroLevel.Logging
6 years ago
{
public sealed class ConsoleLogger
6 years ago
: 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.