mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
31 lines
660 B
C#
31 lines
660 B
C#
using log4net;
|
|
|
|
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
|
|
namespace Infrastructure
|
|
{
|
|
public class LogHelper
|
|
{
|
|
public static readonly ILog _log = LogManager.GetLogger("log4net");
|
|
|
|
public static void Log(string message)
|
|
{
|
|
_log.Info(message);
|
|
}
|
|
|
|
public static void Debug(string message)
|
|
{
|
|
_log.Debug(message);
|
|
}
|
|
|
|
public static void Fatal(string message)
|
|
{
|
|
_log.Fatal(message);
|
|
}
|
|
|
|
public static void Warn(string message)
|
|
{
|
|
_log.Warn(message);
|
|
}
|
|
}
|
|
}
|