|
2 | 2 |
|
3 | 3 | <!-- |
4 | 4 | ################################################################################################################ |
5 | | - For information on how to change this configuration file, |
6 | | - refer to https://logging.apache.org/log4j/2.x/manual/configuration.html |
7 | | - |
8 | | - To enable masking of sensitive data, replace `%m` with `%logMessage%` in the patterns below |
| 5 | + For information on how to change this configuration file, |
| 6 | + refer to https://logging.apache.org/log4j/2.x/manual/configuration.html |
| 7 | + |
| 8 | + To enable masking of sensitive data, replace `%m` with `%logMessage%` in the patterns below |
9 | 9 | ################################################################################################################ |
10 | 10 | --> |
11 | 11 |
|
12 | 12 | <Configuration status="FATAL"> |
13 | | - <Properties> |
| 13 | + <Properties> |
14 | 14 | <Property name="log-path">./logs</Property> |
15 | 15 | <Property name="logFileName">net.authorize.java</Property> |
16 | 16 | </Properties> |
17 | 17 | <Appenders> |
18 | 18 | <Console name="LogToConsole" target="SYSTEM_OUT"> |
19 | | - <PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C:%-1L) - %m%n"/> |
20 | | - </Console> |
| 19 | + <PatternLayout pattern="%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C:%-1L) - %m%n"/> |
| 20 | + </Console> |
21 | 21 | <RollingFile name="RollingFile" |
22 | 22 | fileName="${log-path}/${logFileName}.log" |
23 | 23 | filePattern="${log-path}/${logFileName}-%d{yyyy-MM-dd}-%i.log"> |
24 | 24 | <PatternLayout> |
25 | 25 | <pattern>%d{MM/dd/yy HH:mm:ss,SS:} [%t] %5p (%C:%-1L) - %m%n</pattern> |
26 | 26 | </PatternLayout> |
27 | | - <Policies> |
28 | | - <TimeBasedTriggeringPolicy interval="1" modulate="true"/> |
29 | | - </Policies> |
30 | | - <DefaultRolloverStrategy max="4" /> |
| 27 | + <Policies> |
| 28 | + <TimeBasedTriggeringPolicy interval="1" modulate="true"/> |
| 29 | + </Policies> |
| 30 | + <DefaultRolloverStrategy max="4"/> |
31 | 31 | </RollingFile> |
32 | 32 | </Appenders> |
33 | 33 | <Loggers> |
|
0 commit comments