예제 #1
0
 internal static LogLevel Valid(LogLevel @this, string name)
 {
     if (!LogLevelUtils.IsValid(@this))
     {
         throw new ArgumentOutOfRangeException(name, @this, Properties.Resources.ResourceManager.GetString("LogFileOverflow"));
     }
     return(@this);
 }
예제 #2
0
 public bool WillLogAt(LogLevel queryLevel)
 {
     return(_log.IsLogging && LogLevelUtils.IsValid(queryLevel) && _level >= queryLevel);
 }