public DefaultTestingLoggerFactory(LogLevel filterLevel, TextWriter textWriter)
 {
     this.filterLevel = filterLevel;
     textWriterLogger = new TextWriterLogger(textWriter);
     isDebugEnabled = LogLevel.Debug >= filterLevel;
     isInfoEnabled = LogLevel.Info >= filterLevel;
     isWarnEnabled = LogLevel.Warn >= filterLevel;
     isErrorEnabled = LogLevel.Error >= filterLevel;
     isFatalEnabled = LogLevel.Fatal >= filterLevel;
 }
예제 #2
0
 public DefaultTestingLoggerFactory(LogLevel filterLevel, TextWriter textWriter)
 {
     this.filterLevel = filterLevel;
     textWriterLogger = new TextWriterLogger(textWriter);
     isDebugEnabled   = filterLevel <= LogLevel.Debug;
     isInfoEnabled    = filterLevel <= LogLevel.Info;
     isWarnEnabled    = filterLevel <= LogLevel.Warn;
     isErrorEnabled   = filterLevel <= LogLevel.Error;
     isFatalEnabled   = filterLevel <= LogLevel.Fatal;
 }