LoggerExtensions.WarningSanitized method (1 of 2)

Writes a sanitized warning log event, removing control characters from string property values.

public static void WarningSanitized(this ILogger log, string messageTemplate, 
    params object?[] propertyValues)
parameter description
log The Serilog logger instance.
messageTemplate The message template.
propertyValues The property values for the message template.

See Also


LoggerExtensions.WarningSanitized method (2 of 2)

Writes a sanitized warning log event, removing control characters from string property values.

public static void WarningSanitized(this ILogger log, Exception exception, string messageTemplate, 
    params object?[] propertyValues)
parameter description
log The Serilog logger instance.
exception The exception to log.
messageTemplate The message template.
propertyValues The property values for the message template.

See Also