mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Move Log to Infrastructure project.
This commit is contained in:
35
Wox.Infrastructure/Logger/Log.cs
Normal file
35
Wox.Infrastructure/Logger/Log.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using log4net;
|
||||
|
||||
namespace Wox.Infrastructure.Logger
|
||||
{
|
||||
public class Log
|
||||
{
|
||||
private static ILog fileLogger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public static void Error(string msg)
|
||||
{
|
||||
fileLogger.Error(msg);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user