Sanitize log message and metadata for safe logging Applies both CRLF protection and sensitive data redaction
The log message to sanitize
Optional
Optional metadata object to sanitize
Whether to apply sensitive data redaction (default: true)
Sanitized message and metadata ready for logging
Sanitize log message and metadata for safe logging Applies both CRLF protection and sensitive data redaction