LogHelper.cs 596 Bytes
using log4net;

[assembly: log4net.Config.XmlConfigurator(Watch = true)]   
namespace Infrastructure
{
    public class LogHelper
    {
        public static readonly ILog _log;

        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);
        }
    }
}