Skip to content

Commit e890550

Browse files
committed
fix the view for logging file
1 parent d67e588 commit e890550

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Logging.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,18 @@ Logging framework has been introduced in the SDK which makes use of log4j2 and s
66
## Setup
77
In order to leverage the new logging framework, the following configuration settings may be added to the merchant configuration as part of LogConfiguration:
88

9-
enableLog
10-
logDirectory
11-
logFilename
12-
logMaximumSize
9+
* enableLog
10+
* logDirectory
11+
* logFilename
12+
* logMaximumSize
1313

14-
have to be replaced by the following values:
15-
// Logging to be enabled or not.
16-
props.setProperty("enableLog", "true");
17-
// Log directory Path
18-
props.setProperty("logDirectory", "logs");
19-
props.setProperty("logFilename", "cybs");
20-
// Log file size in KB
21-
props.setProperty("logMaximumSize", "5M");
14+
Have to be replaced by the following values:
15+
* props.setProperty("enableLog", "true"); // Logging to be enabled or not.
16+
* props.setProperty("logDirectory", "logs"); // Log directory Path
17+
* props.setProperty("logFilename", "cybs");
18+
* props.setProperty("logMaximumSize", "5M"); // Log file size in KB
2219

23-
where, enableLog, logDirectory, logFilename, logMaximumSize are variables to be provided
20+
where **`enableLog, logDirectory, logFilename, logMaximumSize`** are variables to be provided
2421

2522

2623
# Log4j Configuration
@@ -92,9 +89,12 @@ where, enableLog, logDirectory, logFilename, logMaximumSize are variables to be
9289

9390
### Important Notes
9491
* 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-
```xml <PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %m%n"/> ```
92+
93+
<PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %m%n"/>
94+
9695
replace with
97-
```xml <PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C{1}:%-1L) - %maskedMessage%n"/> ```
96+
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:

0 commit comments

Comments
 (0)