LoggerExtensions.ErrorSanitized method
Writes a sanitized error log event, removing control characters from string property values.
public static void ErrorSanitized(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
- class LoggerExtensions
- namespace Kestrun.Logging