Ejemplo n.º 1
0
        global::NLog.LogLevel GetNLogLevel(Burrows.Logging.LogLevel level)
        {
            if (level == Burrows.Logging.LogLevel.Fatal)
            {
                return(global::NLog.LogLevel.Fatal);
            }
            if (level == Burrows.Logging.LogLevel.Error)
            {
                return(global::NLog.LogLevel.Error);
            }
            if (level == Burrows.Logging.LogLevel.Warn)
            {
                return(global::NLog.LogLevel.Warn);
            }
            if (level == Burrows.Logging.LogLevel.Info)
            {
                return(global::NLog.LogLevel.Info);
            }
            if (level == Burrows.Logging.LogLevel.Debug)
            {
                return(global::NLog.LogLevel.Debug);
            }
            if (level == Burrows.Logging.LogLevel.All)
            {
                return(global::NLog.LogLevel.Trace);
            }

            return(global::NLog.LogLevel.Off);
        }
Ejemplo n.º 2
0
 public void LogFormat(Burrows.Logging.LogLevel level, string format, params object[] args)
 {
     _log.Log(GetNLogLevel(level), format, args);
 }
Ejemplo n.º 3
0
 public void Log(Burrows.Logging.LogLevel level, LogOutputProvider messageProvider)
 {
     _log.Log(GetNLogLevel(level), ToGenerator(messageProvider));
 }
Ejemplo n.º 4
0
 public void Log(Burrows.Logging.LogLevel level, object message, Exception exception)
 {
     _log.LogException(GetNLogLevel(level), message == null ? "" : message.ToString(), exception);
 }
Ejemplo n.º 5
0
 public void Log(Burrows.Logging.LogLevel level, object message)
 {
     _log.Log(GetNLogLevel(level), message);
 }