public bool IsEnabled(LogLevel level) { return(_logger.IsEnabled(level.AsSerilogLevel())); }
public void Write(LogLevel level, string messageTemplate, object[] propertyValues) { var logger = _loggerStack.TryPeek(out var currentLogger) ? currentLogger : _fallbackLogger; logger.Write(level.AsSerilogLevel(), (Exception)null, messageTemplate, propertyValues); }
public void Write(LogLevel level, Exception exception, string messageTemplate, params object[] propertyValues) { _logger.Write(level.AsSerilogLevel(), exception, messageTemplate, propertyValues); }