Skip to content

Commit 52e68d7

Browse files
committed
arrangement in log file
1 parent 3e07c4f commit 52e68d7

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

Logging.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ where, enableLog, logDirectory, logFilename, logMaximumSize are variables to be
4444
</Properties>
4545
<Appenders>
4646
<Console name="LogToConsole" target="SYSTEM_OUT">
47-
<PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %maskedMessage%n"/>
47+
<PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %m%n"/>
4848
</Console>
4949
<RollingFile name="RollingFile"
5050
fileName="${log-path}/${logFileName}.log"
5151
filePattern="${log-path}/${logFileName}-%d{yyyy-MM-dd}-%i.log">
5252
<PatternLayout>
53-
<pattern>%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %maskedMessage%n</pattern>
53+
<pattern>%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %m%n</pattern>
5454
</PatternLayout>
5555
<Policies>
5656
<TimeBasedTriggeringPolicy interval="1" modulate="true"/>
@@ -91,23 +91,23 @@ where, enableLog, logDirectory, logFilename, logMaximumSize are variables to be
9191
```
9292

9393
### Important Notes
94-
To enable masking of sensitive data i.e. sensitive data in the request/response should be hidden/masked, then replace `%m` with `%maskedMessage` in the patterns below -->
95-
<PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %m%n"/>
96-
replace with
97-
<PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %maskedMessage%n"/>
94+
* To enable masking of sensitive data i.e. sensitive data in the request/response should be hidden/masked, then replace `%m` with `%maskedMessage` in the patterns below -->
95+
* <PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %m%n"/>
96+
replace with
97+
<PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %maskedMessage%n"/>
9898

9999

100100
* Sensitive data fields are listed below:
101-
Card Security Code
102-
Card Number
103-
Any field with number in the name
104-
Card Expiration Month
105-
Card Expiration Year
106-
Account
107-
Routing Number
108-
Email
109-
First Name & Last Name
110-
Phone Number
111-
Type
112-
Token
113-
Signature
101+
* Card Security Code
102+
* Card Number
103+
* Any field with number in the name
104+
* Card Expiration Month
105+
* Card Expiration Year
106+
* Account
107+
* Routing Number
108+
* Email
109+
* First Name & Last Name
110+
* Phone Number
111+
* Type
112+
* Token
113+
* Signature

0 commit comments

Comments
 (0)