LogSanitizer class

Log temizleme - hassas verileri maskeler.

Bu sınıf, log çıktılarından hassas verileri otomatik olarak maskeler. Kart numaraları, CVV, API anahtarları ve şifreler güvenli şekilde gizlenir.

Örnek

final safeLog = LogSanitizer.sanitize('Card: 5528790000000008, CVV: 123');
// Output: 'Card: 552879XXXXXX0008, CVV: ***'

Performance

All RegExp patterns are compiled once as static finals to avoid recompilation on each call, improving performance significantly.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

maskCardNumber(String cardNumber) String
Kart numarasını maskele: 552879XXXXXX0008
maskCVV(String cvv) String
CVV'yi maskele
sanitize(String input) String
Genel log temizleme
sanitizeMap(Map<String, dynamic> data, {int maxDepth = _maxRecursionDepth}) Map<String, dynamic>
JSON map'ten hassas verileri temizle