File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/main/java/com/stackify/log/log4j12 Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ org.apache.log4j.LogManager.shutdown();
57
57
58
58
The Stackify appender has built-in data masking for credit cards and social security number values.
59
59
60
- ** Disable Masking:**
60
+ ** Enable Masking:**
61
61
62
62
Add ` <param name="maskEnabled" value="true"/> ` inside the ` <appender> ... </appender> ` tag.
63
63
Original file line number Diff line number Diff line change @@ -183,12 +183,8 @@ public void activateOptions() {
183
183
184
184
// setup masker
185
185
186
- if (maskEnabled == null ) {
187
- maskEnabled = Boolean .TRUE .toString ();
188
- }
189
-
190
186
Masker masker = new Masker ();
191
- if (Boolean .parseBoolean (maskEnabled )) {
187
+ if (maskEnabled != null && Boolean .parseBoolean (maskEnabled )) {
192
188
193
189
// set default masks
194
190
masker .addMask (Masker .MASK_CREDITCARD );
You can’t perform that action at this time.
0 commit comments