protected virtual bool ShouldLog(LoggerLevel loggerLevel) { return(!IsSuspended); }
public bool Enabled(LoggerLevel level = null) { return(ShouldLog(level)); }
public void Log(LoggerLevel level, string message, Exception exception, object data = null) { CoreLog(message, null, level, exception, data); }
public void LogFormat(LoggerLevel level, IFormatProvider formatProvider, string format, params object[] args) { CoreLog(format, args, level, null, null); }
public void Log(LoggerLevel level, object value, object data = null) { CoreLog(value, level, null, data); }
public void Log(LoggerLevel level, string message, object data = null) { CoreLog(message, null, level, null, data); }
public bool TryGetValue(LoggerLevel key, out T value) { value = this.values[key.ToInt32()]; return(true); }
protected override bool ShouldLog(LoggerLevel loggerLevel) { // Fast consideration of level return(base.ShouldLog(loggerLevel) && levels.IsMatch(loggerLevel)); }
bool IDictionary <LoggerLevel, T> .Remove(LoggerLevel key) { throw new NotSupportedException(); }
void IDictionary <LoggerLevel, T> .Add(LoggerLevel key, T value) { throw new NotSupportedException(); }
public static LoggerLevels Exactly(LoggerLevel level) { return(new LoggerLevels(level)); }
public LoggerLevels(LoggerLevel singleton) : base(false) { this[singleton] = true; MakeReadOnly(); }
public bool IsMatch(LoggerLevel value) { return(IsMatch(value, null)); }