Example #1
0
 static ILogWriter GetWarn(TraceLogProvider log)
 {
     return new TraceLogWriter(() => log.IsEnabled(LogLevel.Warn));
 }
Example #2
0
 static ILogWriter GetInfo(TraceLogProvider log)
 {
     return new TraceLogWriter(() => log.IsEnabled(LogLevel.Info));
 }
Example #3
0
 static ILogWriter GetError(TraceLogProvider log)
 {
     return new TraceLogWriter(() => log.IsEnabled(LogLevel.Error));
 }
Example #4
0
 static ILogWriter GetFatal(TraceLogProvider log)
 {
     return new TraceLogWriter(() => log.IsEnabled(LogLevel.Fatal));
 }
Example #5
0
 static ILogWriter GetDebug(TraceLogProvider log)
 {
     return new TraceLogWriter(() => log.IsEnabled(LogLevel.Debug));
 }