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