Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeForLog ¶
SanitizeForLog sanitizes a string for safe logging by removing or escaping control characters that could cause log injection attacks. The optional maxLength parameter controls truncation (default: 100). Pass 0 or negative to disable truncation. TODO: Consider migrating to structured logging which handles sanitization automatically through field encoding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.