Exemple #1
0
 public void Log(MT.LogLevel level, MT.LogOutputProvider messageProvider)
 {
     if (level == MT.LogLevel.Fatal)
     {
         Fatal(messageProvider);
     }
     else if (level == MT.LogLevel.Error)
     {
         Error(messageProvider);
     }
     else if (level == MT.LogLevel.Warn)
     {
         Warn(messageProvider);
     }
     else if (level == MT.LogLevel.Info)
     {
         Info(messageProvider);
     }
     else if (level >= MT.LogLevel.Debug)
     {
         Debug(messageProvider);
     }
 }
Exemple #2
0
 public void LogFormat(MT.LogLevel level, IFormatProvider formatProvider, string format, params object[] args)
 {
     if (level == MT.LogLevel.Fatal)
     {
         FatalFormat(formatProvider, format, args);
     }
     else if (level == MT.LogLevel.Error)
     {
         ErrorFormat(formatProvider, format, args);
     }
     else if (level == MT.LogLevel.Warn)
     {
         WarnFormat(formatProvider, format, args);
     }
     else if (level == MT.LogLevel.Info)
     {
         InfoFormat(formatProvider, format, args);
     }
     else if (level >= MT.LogLevel.Debug)
     {
         DebugFormat(formatProvider, format, args);
     }
 }
Exemple #3
0
 public void Log(MT.LogLevel level, object obj, Exception exception)
 {
     if (level == MT.LogLevel.Fatal)
     {
         Fatal(obj, exception);
     }
     else if (level == MT.LogLevel.Error)
     {
         Error(obj, exception);
     }
     else if (level == MT.LogLevel.Warn)
     {
         Warn(obj, exception);
     }
     else if (level == MT.LogLevel.Info)
     {
         Info(obj, exception);
     }
     else if (level >= MT.LogLevel.Debug)
     {
         Debug(obj, exception);
     }
 }