This commit is contained in:
2026-02-13 15:46:30 +01:00
parent 85d42c0641
commit e13f7217ab
16 changed files with 759 additions and 1170 deletions

View File

@@ -260,42 +260,6 @@ namespace EonaCat.Logger.Advanced
}
```
**Code for enabling keyword masking (default: false):**
```csharp
Logger.LoggerSettings.UseMask = true;
```
Sensitive information will be replaced with ****MASKED****
You can add additional masking keywords using the MaskedKeywords property on the LoggerSettings object
You can also override the MaskSensitiveInformation method of the batchLoggingProvider to add your own masking
Default maskings (when the masking is enabled):
IP addresses
MAC addresses
Emails
Passwords
Credit card numbers
Social security numbers (SSN) and BSN (Dutch Citizen Service Number)
API keys/tokens
Phone numbers (generic and Dutch specific)
Dates of birth (DOB) or other date formats
IBAN/Bank account numbers (generic and Dutch specific)
JWT tokens
URLs with sensitive query strings
License keys
Public and private keys (e.g., PEM format)
Dutch KVK number (8 or 12 digits)
Dutch BTW-nummer (VAT number)
Dutch driving license number (10-12 characters)
Dutch health insurance number (Zorgnummer)
Other Dutch Bank Account numbers (9-10 digits)
Dutch Passport Numbers (9 alphanumeric characters
Dutch Identification Document Numbers (varying formats)
Custom keywords specified in LoggerSettings
Header tokens:
{date} {time} {ts} {tz} {unix} {ticks}{newline}