44 lines
633 B
C#
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);
|
|
}
|
|
}
|
|
}
|