Files
inside_out_web_data_interac…/93_nei/Getf.Service.Transfer.Client.WinService/Helpers/LogHelper.cs
2021-12-20 17:17:49 +08:00

44 lines
633 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Getf.Service.Transfer.Client.WinService.Helpers
{
public class LogHelper
{
log4net.ILog MLog;
public LogHelper()
{
MLog = log4net.LogManager.GetLogger("Getf.Transfer.Client");
}
public void Debug(string msg)
{
MLog.Debug(msg);
}
public void Error(string msg)
{
MLog.Error(msg);
}
public void Error(Exception exception)
{
MLog.Error(exception.Message, exception);
}
public void Info(string msg)
{
MLog.Info(msg);
}
public void Warn(string msg)
{
MLog.Warn(msg);
}
}
}