set default log dir to 'logs'
This commit is contained in:
1
pdb-ui/.gitignore
vendored
1
pdb-ui/.gitignore
vendored
@@ -5,3 +5,4 @@
|
|||||||
/build/
|
/build/
|
||||||
/target/
|
/target/
|
||||||
/test-output/
|
/test-output/
|
||||||
|
/logs/
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Configuration
|
<Configuration
|
||||||
monitorInterval="10">
|
monitorInterval="10">
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<Property name="LOG_DIR">${sys:logDir:-logs}</Property>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
<Appenders>
|
<Appenders>
|
||||||
<Console name="Console" target="SYSTEM_OUT">
|
<Console name="Console" target="SYSTEM_OUT">
|
||||||
<PatternLayout pattern="%d %5p [%-20.20t] %-30.30c{1.} : %m%n"/>
|
<PatternLayout pattern="%d %5p [%-20.20t] %-30.30c{1.} : %m%n"/>
|
||||||
</Console>
|
</Console>
|
||||||
<RollingRandomAccessFile name="logfile"
|
<RollingRandomAccessFile name="logfile"
|
||||||
fileName="${sys:logDir}/pdb.log"
|
fileName="${LOG_DIR}/pdb.log"
|
||||||
filePattern="${sys:logDir}/pdb.%d{yyyy-MM-dd_HHmmss}.log.zip">
|
filePattern="${LOG_DIR}/pdb.%d{yyyy-MM-dd_HHmmss}.log.zip">
|
||||||
<PatternLayout pattern="%d %5p [%-20.20t] %-30.30c{1.} : %m%n"
|
<PatternLayout pattern="%d %5p [%-20.20t] %-30.30c{1.} : %m%n"
|
||||||
charset="UTF-8"/>
|
charset="UTF-8"/>
|
||||||
<Policies>
|
<Policies>
|
||||||
@@ -15,7 +20,7 @@
|
|||||||
<CronTriggeringPolicy schedule="0 0 0 * * ?"/><!-- triggers every day at midnight -->
|
<CronTriggeringPolicy schedule="0 0 0 * * ?"/><!-- triggers every day at midnight -->
|
||||||
</Policies>
|
</Policies>
|
||||||
<DefaultRolloverStrategy>
|
<DefaultRolloverStrategy>
|
||||||
<Delete basePath="${sys:logDir}" maxDepth="1">
|
<Delete basePath="${LOG_DIR}" maxDepth="1">
|
||||||
<IfFileName glob="*/pdb.*.log.zip" />
|
<IfFileName glob="*/pdb.*.log.zip" />
|
||||||
<IfLastModified age="30d" />
|
<IfLastModified age="30d" />
|
||||||
</Delete>
|
</Delete>
|
||||||
|
|||||||
Reference in New Issue
Block a user