mirror of https://github.com/ogoun/Zero.git
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.
25 lines
589 B
25 lines
589 B
using System;
|
|
|
|
namespace ZeroLevel.Services.Logging.Implementation
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
} |