log_shield library

Classes

JsonSanitizer
Utility class for sanitizing PII from JSON maps and lists.
LogShield
Singleton log sanitization manager.
LogShieldConfig
Configuration for the LogShield module.

Functions

shieldLog(String message, {String level = 'INFO', String? tag}) → void
Sanitizes PII from message and logs it with a level and optional tag.
shieldLogError(String message, {Object? error, StackTrace? stackTrace}) → void
Sanitizes PII from error messages and logs them.
shieldLogJson(String label, Map<String, dynamic> json) → void
Sanitizes PII from a JSON map and logs it.