Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public bool WillLogAt(LogLevel queryLevel)
 {
     return(_log.IsLogging && LogLevelUtils.IsValid(queryLevel) && _level >= queryLevel);
 }