예제 #1
0
 public virtual bool IsLoggable(LogRecord logrecord)
 {
     if (theLevel.IntValue() != Level.OFF.IntValue() &&
         logrecord.GetLevel().IntValue() >= theLevel.IntValue() &&
         (theFilter == null || theFilter.IsLoggable(logrecord)))
     {
         return(true);
     }
     return(false);
 }
예제 #2
0
 public bool IsLoggable(Level level)
 {
     return(level.IntValue() >= this.GetEffectiveLevel().IntValue());
 }