예제 #1
0
 public void Log(NybusLogLevel level, IDictionary <string, object> state, Exception exception)
 {
     if (state.TryGetValue("message", out var msg) && msg is string message)
     {
         _logger.Log(level.ToMicrosoftLogLevel(), 0, state, exception, (s, e) => message);
     }
 }
예제 #2
0
 public bool IsEnabled(NybusLogLevel level)
 {
     return(_logger.IsEnabled(level.ToMicrosoftLogLevel()));
 }