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

            MakeReadOnly();
        }
Ejemplo n.º 13
0
 public bool IsMatch(LoggerLevel value)
 {
     return(IsMatch(value, null));
 }