We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a62e5 commit c8bafd0Copy full SHA for c8bafd0
app/src/main/resources/log4j2-ui.yaml
@@ -3,8 +3,10 @@ Configuration:
3
shutdownHook: disable
4
properties:
5
property:
6
- name: filename
7
- value: ${sys:user.home}/.jiottyphotosuploader/log/main.log
+ - name: logDir
+ value: ${sys:user.home}/.jiottyphotosuploader/log
8
+ - name: filename
9
+ value: ${logDir}/main.log
10
appenders:
11
RollingFile:
12
name: FILE
@@ -18,6 +20,13 @@ Configuration:
18
20
OnStartupTriggeringPolicy: { }
19
21
DefaultRollOverStrategy:
22
max: 10
23
+ Delete:
24
+ basePath: ${logDir}
25
+ maxDepth: 1
26
+ IfFileName:
27
+ glob: main.log*
28
+ IfLastModified:
29
+ age: 60d
30
31
Loggers:
32
logger:
0 commit comments