Exemplo n.º 1
0
 public bool IsEnabled(LogLevel level)
 {
     return(_logger.IsEnabled(level.AsSerilogLevel()));
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void Write(LogLevel level, Exception exception, string messageTemplate, params object[] propertyValues)
 {
     _logger.Write(level.AsSerilogLevel(), exception, messageTemplate, propertyValues);
 }