Serilog.ILogger
The core Serilog logging API, used for writing log events.
bool BindMessageTemplate(string messageTemplate, object[] propertyValues, out MessageTemplate parsedTemplate, out IEnumerable boundProperties)
Uses configured scalar conversion and destructuring rules to bind a set of properties to a
message template. Returns false if the template or values are invalid (ILogger
methods never throw exceptions).
bool BindProperty(string propertyName, object value, bool destructureObjects, out LogEventProperty property)
Uses configured scalar conversion and destructuring rules to bind a property value to its captured
representation.
Write a log event with the Debug level.
Write a log event with the Debug level.
Write a log event with the Debug level.
void Debug<T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Debug level.
Write a log event with the Debug level and associated exception.
Write a log event with the Debug level and associated exception.
Write a log event with the Debug level and associated exception.
void Debug<T0, T1>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the Debug level and associated exception.
void Debug<T0, T1, T2>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Debug level and associated exception.
Write a log event with the Debug level and associated exception.
Write a log event with the Error level.
Write a log event with the Error level.
Write a log event with the Error level.
void Error<T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Error level.
Write a log event with the Error level and associated exception.
Write a log event with the Error level and associated exception.
Write a log event with the Error level and associated exception.
void Error<T0, T1>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the Error level and associated exception.
void Error<T0, T1, T2>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Error level and associated exception.
Write a log event with the Error level and associated exception.
Write a log event with the Fatal level.
Write a log event with the Fatal level.
Write a log event with the Fatal level.
void Fatal<T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Fatal level.
Write a log event with the Fatal level and associated exception.
Write a log event with the Fatal level and associated exception.
Write a log event with the Fatal level and associated exception.
void Fatal<T0, T1>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the Fatal level and associated exception.
void Fatal<T0, T1, T2>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Fatal level and associated exception.
Write a log event with the Fatal level and associated exception.
Create a logger that enriches log events via the provided enrichers.
Create a logger that enriches log events via the provided enrichers.
Create a logger that enriches log events with the specified property.
Create a logger that marks log events as being from the specified
source type.
Create a logger that marks log events as being from the specified
source type.
Write a log event with the Information level.
Write a log event with the Information level.
Write a log event with the Information level.
void Information<T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Information level.
Write a log event with the Information level and associated exception.
Write a log event with the Information level and associated exception.
Write a log event with the Information level and associated exception.
void Information<T0, T1>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the Information level and associated exception.
void Information<T0, T1, T2>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Information level and associated exception.
Write a log event with the Information level and associated exception.
Determine if events at the specified level will be passed through
to the log sinks.
Write a log event with the Verbose level.
Write a log event with the Verbose level.
Write a log event with the Verbose level.
void Verbose<T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Verbose level.
Write a log event with the Verbose level and associated exception.
Write a log event with the Verbose level and associated exception.
Write a log event with the Verbose level and associated exception.
void Verbose<T0, T1>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the Verbose level and associated exception.
void Verbose<T0, T1, T2>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Verbose level and associated exception.
Write a log event with the Verbose level and associated exception.
Write a log event with the Warning level.
Write a log event with the Warning level.
Write a log event with the Warning level.
void Warning<T0, T1, T2>(string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Warning level.
Write a log event with the Warning level and associated exception.
Write a log event with the Warning level and associated exception.
Write a log event with the Warning level and associated exception.
void Warning<T0, T1>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the Warning level and associated exception.
void Warning<T0, T1, T2>(Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the Warning level and associated exception.
Write a log event with the Warning level and associated exception.
Write an event to the log.
Write a log event with the specified level.
Write a log event with the specified level.
void Write<T0, T1>(LogEventLevel level, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the specified level.
void Write<T0, T1, T2>(LogEventLevel level, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the specified level.
Write a log event with the specified level.
Write a log event with the specified level and associated exception.
Write a log event with the specified level and associated exception.
void Write<T0, T1>(LogEventLevel level, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Write a log event with the specified level and associated exception.
void Write<T0, T1, T2>(LogEventLevel level, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Write a log event with the specified level and associated exception.
void Write(LogEventLevel level, Exception exception, string messageTemplate, object[] propertyValues)
Write a log event with the specified level and associated exception.