mirror of
https://github.com/cyanfish/naps2.git
synced 2024-10-04 19:37:15 +03:00
34 lines
775 B
C#
34 lines
775 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace NAPS2
|
|
{
|
|
public class Log
|
|
{
|
|
private static ILogger _logger = new NullLogger();
|
|
|
|
public static ILogger Logger
|
|
{
|
|
get { return _logger; }
|
|
set
|
|
{
|
|
if (value == null)
|
|
throw new ArgumentNullException("value");
|
|
_logger = value;
|
|
}
|
|
}
|
|
|
|
public static void Error(string message, params object[] args)
|
|
{
|
|
_logger.Error(string.Format(message, args));
|
|
}
|
|
|
|
public static void ErrorException(string message, Exception exception)
|
|
{
|
|
_logger.ErrorException(message, exception);
|
|
}
|
|
}
|
|
}
|