mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
采用全新的数据库架构
This commit is contained in:
30
Infrastructure/LogHelper.cs
Normal file
30
Infrastructure/LogHelper.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user