コード例 #1
0
 protected virtual bool ShouldLog(LoggerLevel loggerLevel)
 {
     return(!IsSuspended);
 }
コード例 #2
0
 public bool Enabled(LoggerLevel level = null)
 {
     return(ShouldLog(level));
 }
コード例 #3
0
 public void Log(LoggerLevel level, string message, Exception exception, object data = null)
 {
     CoreLog(message, null, level, exception, data);
 }
コード例 #4
0
 public void LogFormat(LoggerLevel level, IFormatProvider formatProvider, string format, params object[] args)
 {
     CoreLog(format, args, level, null, null);
 }
コード例 #5
0
 public void Log(LoggerLevel level, object value, object data = null)
 {
     CoreLog(value, level, null, data);
 }
コード例 #6
0
 public void Log(LoggerLevel level, string message, object data = null)
 {
     CoreLog(message, null, level, null, data);
 }
コード例 #7
0
 public bool TryGetValue(LoggerLevel key, out T value)
 {
     value = this.values[key.ToInt32()];
     return(true);
 }
コード例 #8
0
 protected override bool ShouldLog(LoggerLevel loggerLevel)
 {
     // Fast consideration of level
     return(base.ShouldLog(loggerLevel) && levels.IsMatch(loggerLevel));
 }
コード例 #9
0
 bool IDictionary <LoggerLevel, T> .Remove(LoggerLevel key)
 {
     throw new NotSupportedException();
 }
コード例 #10
0
 void IDictionary <LoggerLevel, T> .Add(LoggerLevel key, T value)
 {
     throw new NotSupportedException();
 }
コード例 #11
0
 public static LoggerLevels Exactly(LoggerLevel level)
 {
     return(new LoggerLevels(level));
 }
コード例 #12
0
        public LoggerLevels(LoggerLevel singleton) : base(false)
        {
            this[singleton] = true;

            MakeReadOnly();
        }
コード例 #13
0
 public bool IsMatch(LoggerLevel value)
 {
     return(IsMatch(value, null));
 }