jellyfin/MediaBrowser.Server.Implementations/Logging/PatternsLogger.cs

64 lines
1.7 KiB
C#
Raw Normal View History

2015-01-16 21:38:24 -07:00
using Patterns.Logging;
2014-09-03 18:44:40 -07:00
using System;
2015-01-16 21:38:24 -07:00
namespace MediaBrowser.Server.Implementations.Logging
2014-09-03 18:44:40 -07:00
{
2015-01-16 21:38:24 -07:00
public class PatternsLogger : ILogger
2014-09-03 18:44:40 -07:00
{
2015-01-16 21:38:24 -07:00
private readonly Model.Logging.ILogger _logger;
2014-09-03 18:44:40 -07:00
2015-01-16 21:38:24 -07:00
public PatternsLogger()
: this(new Model.Logging.NullLogger())
{
}
public PatternsLogger(Model.Logging.ILogger logger)
2014-09-03 18:44:40 -07:00
{
_logger = logger;
}
public void Debug(string message, params object[] paramList)
{
_logger.Debug(message, paramList);
}
public void Error(string message, params object[] paramList)
{
_logger.Error(message, paramList);
}
public void ErrorException(string message, Exception exception, params object[] paramList)
{
_logger.ErrorException(message, exception, paramList);
}
public void Fatal(string message, params object[] paramList)
{
_logger.Fatal(message, paramList);
}
public void FatalException(string message, Exception exception, params object[] paramList)
{
_logger.FatalException(message, exception, paramList);
}
public void Info(string message, params object[] paramList)
{
_logger.Info(message, paramList);
}
public void Warn(string message, params object[] paramList)
{
_logger.Warn(message, paramList);
}
2015-01-16 21:38:24 -07:00
public void Log(LogSeverity severity, string message, params object[] paramList)
{
}
public void LogMultiline(string message, LogSeverity severity, System.Text.StringBuilder additionalContent)
{
}
2014-09-03 18:44:40 -07:00
}
}