IW4M-Admin/Application/Misc/Logger.cs

48 lines
1005 B
C#
Raw Normal View History

using System;
using Microsoft.Extensions.Logging;
using ILogger = SharedLibraryCore.Interfaces.ILogger;
2017-05-27 19:29:20 -04:00
namespace IW4MAdmin.Application
2017-05-27 19:29:20 -04:00
{
[Obsolete]
public class Logger : ILogger
2017-05-27 19:29:20 -04:00
{
private readonly Microsoft.Extensions.Logging.ILogger _logger;
public Logger(ILogger<Logger> logger)
{
_logger = logger;
2017-05-27 19:29:20 -04:00
}
public void WriteVerbose(string msg)
{
_logger.LogInformation(msg);
2017-05-27 19:29:20 -04:00
}
public void WriteDebug(string msg)
{
_logger.LogDebug(msg);
2017-05-27 19:29:20 -04:00
}
public void WriteError(string msg)
{
_logger.LogError(msg);
2017-05-27 19:29:20 -04:00
}
public void WriteInfo(string msg)
{
WriteVerbose(msg);
2017-05-27 19:29:20 -04:00
}
public void WriteWarning(string msg)
{
_logger.LogWarning(msg);
2017-05-27 19:29:20 -04:00
}
2017-11-13 16:58:23 -05:00
public void WriteAssert(bool condition, string msg)
{
throw new NotImplementedException();
2017-11-13 16:58:23 -05:00
}
2017-05-27 19:29:20 -04:00
}
}