set default log dir to 'logs'

This commit is contained in:
2018-07-28 08:59:56 +02:00
parent 89840cf9e9
commit 1567429b3a
2 changed files with 9 additions and 3 deletions

1
pdb-ui/.gitignore vendored
View File

@@ -5,3 +5,4 @@
/build/
/target/
/test-output/
/logs/

View File

@@ -1,13 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
monitorInterval="10">
<Properties>
<Property name="LOG_DIR">${sys:logDir:-logs}</Property>
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d %5p [%-20.20t] %-30.30c{1.} : %m%n"/>
</Console>
<RollingRandomAccessFile name="logfile"
fileName="${sys:logDir}/pdb.log"
filePattern="${sys:logDir}/pdb.%d{yyyy-MM-dd_HHmmss}.log.zip">
fileName="${LOG_DIR}/pdb.log"
filePattern="${LOG_DIR}/pdb.%d{yyyy-MM-dd_HHmmss}.log.zip">
<PatternLayout pattern="%d %5p [%-20.20t] %-30.30c{1.} : %m%n"
charset="UTF-8"/>
<Policies>
@@ -15,7 +20,7 @@
<CronTriggeringPolicy schedule="0 0 0 * * ?"/><!-- triggers every day at midnight -->
</Policies>
<DefaultRolloverStrategy>
<Delete basePath="${sys:logDir}" maxDepth="1">
<Delete basePath="${LOG_DIR}" maxDepth="1">
<IfFileName glob="*/pdb.*.log.zip" />
<IfLastModified age="30d" />
</Delete>