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); } }
public bool IsEnabled(NybusLogLevel level) { return(_logger.IsEnabled(level.ToMicrosoftLogLevel())); }