2013-12-22 11:35:21 +00:00
|
|
|
|
using System.Reflection;
|
2013-12-20 11:38:10 +00:00
|
|
|
|
using log4net;
|
|
|
|
|
|
|
2014-01-29 10:33:24 +00:00
|
|
|
|
namespace Wox.Helper
|
2013-12-20 11:38:10 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class Log
|
|
|
|
|
|
{
|
|
|
|
|
|
private static ILog fileLogger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
|
|
|
|
|
|
2013-12-20 17:20:17 +00:00
|
|
|
|
public static void Error(string msg)
|
2013-12-20 11:38:10 +00:00
|
|
|
|
{
|
2013-12-20 17:20:17 +00:00
|
|
|
|
fileLogger.Error(msg);
|
2013-12-20 11:38:10 +00:00
|
|
|
|
}
|
2014-03-23 09:43:46 +00:00
|
|
|
|
|
|
|
|
|
|
public static void Debug(string msg)
|
|
|
|
|
|
{
|
|
|
|
|
|
fileLogger.Debug(msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void Info(string msg)
|
|
|
|
|
|
{
|
|
|
|
|
|
fileLogger.Info(msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void Warn(string msg)
|
|
|
|
|
|
{
|
|
|
|
|
|
fileLogger.Warn(msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void Fatal(string msg)
|
|
|
|
|
|
{
|
|
|
|
|
|
fileLogger.Fatal(msg);
|
|
|
|
|
|
}
|
2013-12-20 11:38:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|