LoggerExtensions.DebugSanitized method (1 of 2)

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

public static void DebugSanitized(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.DebugSanitized method (2 of 2)

Writes a sanitized debug log event with an exception, removing control characters from string property values.

public static void DebugSanitized(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