@@ -17,6 +17,57 @@ The masker does not change the length of the logged message.
...
@@ -17,6 +17,57 @@ The masker does not change the length of the logged message.
Depending on the machine, the masker can take up to a few hundred milliseconds to mask 100.000 lines. The benchmark was executed on a Core i7-7700k. The average duration was: 157ms. The benchmark can be run using the `CardMaskerPerformanceTest` from the `masker` module.
Depending on the machine, the masker can take up to a few hundred milliseconds to mask 100.000 lines. The benchmark was executed on a Core i7-7700k. The average duration was: 157ms. The benchmark can be run using the `CardMaskerPerformanceTest` from the `masker` module.
##Advanced Integration
When the `CardNumberMasker` is used together with the `Log4jMaskingLayout`, additional configuration options are enabled.
### Configuration options
- startKeep - integer value - Indicates the number of unmasked digits from the start of the PAN
- endKeep - integer value - Indicates the number of unmasked digits from the end of the PAN
- luhnCheck - boolean - If LUHN check on the PAN is performed prior to masking. Potential PANs which fail LUHN check are *NOT* masked. Luhn checking increases overhead since additional processing is performed.