SanitizeForLogging

Function SanitizeForLogging 

Source
pub fn SanitizeForLogging(Value: &str, MaxLength: usize) -> String
Expand description

Sanitize a string for logging

Removes or escapes potentially sensitive information from strings before logging to prevent information leakage in logs.

§Arguments

  • Value - The string to sanitize
  • MaxLength - Maximum length before truncation

§Returns

Sanitized string safe for logging.