You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Logging.md
+8-16Lines changed: 8 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,9 @@
4
4
Logging framework has been introduced in the SDK which makes use of log4j2 and standardizes the logging so that it can be integrated with the logging in the client application.
5
5
6
6
## Setup
7
-
In order to leverage the new logging framework, the following configuration settings may be added to the merchant configuration as part of LogConfiguration:
7
+
In order to leverage the new logging framework, all logging configuration settings are entrusted to the log4j2 framework. For this, a new file `log4j.xml` has to be added to contain the configuration properties. A sample file has been provided below.
8
8
9
-
* enableLog
10
-
* logDirectory
11
-
* logFilename
12
-
* logMaximumSize
13
-
14
-
Have to be replaced by the following values:
15
-
* props.setProperty("enableLog", "true"); // Logging to be enabled or not.
* props.setProperty("logMaximumSize", "5M"); // Log file size in KB
19
-
20
-
where **`enableLog, logDirectory, logFilename, logMaximumSize`** are variables to be provided
9
+
For more detailed information on how to change this configuration file, refer to [Apache Log4j2 Configuration](https://logging.apache.org/log4j/2.x/manual/configuration.html).
21
10
22
11
23
12
## Log4j Configuration
@@ -88,10 +77,13 @@ where **`enableLog, logDirectory, logFilename, logMaximumSize`** are variables t
88
77
```
89
78
90
79
### Important Notes
91
-
* 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 -->
80
+
* 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 pattern below:
0 commit comments