Пример #1
0
 public bool IsEnabled(LogLevel level)
 {
     return(_logger.IsEnabled(level.AsSerilogLevel()));
 }
Пример #2
0
        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);
        }
Пример #3
0
 public void Write(LogLevel level, Exception exception, string messageTemplate, params object[] propertyValues)
 {
     _logger.Write(level.AsSerilogLevel(), exception, messageTemplate, propertyValues);
 }