41 lines
1.8 KiB
XML
41 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Configuration status="WARN">
|
|
<Properties>
|
|
<Property name="logPath">logs/</Property>
|
|
<Property name="rollingFileName">launcher</Property>
|
|
</Properties>
|
|
<Appenders>
|
|
<Console name="console" target="SYSTEM_OUT">
|
|
<PatternLayout
|
|
pattern="[%highlight{%-5level}] %d{DEFAULT} %c{1}.%M() - %msg%n%throwable{short.lineNumber}"/>
|
|
</Console>
|
|
<RollingFile name="rollingFile" fileName="${logPath}/${rollingFileName}.log"
|
|
filePattern="${logPath}/${rollingFileName}_%d{yyyy-MM-dd}.log">
|
|
<PatternLayout
|
|
pattern="[%highlight{%-5level}] %d{DEFAULT} %c{1}.%M() - %msg%n%throwable{short.lineNumber}"/>
|
|
<Policies>
|
|
<!-- Causes a rollover if the log file is older than the current JVM's start time -->
|
|
<OnStartupTriggeringPolicy/>
|
|
<!-- Causes a rollover once the date/time pattern no longer applies to the active file -->
|
|
<TimeBasedTriggeringPolicy interval="1" modulate="true"/>
|
|
</Policies>
|
|
<DefaultRolloverStrategy>
|
|
<Delete basePath="${logPath}" maxDepth="2">
|
|
<IfFileName glob="*/${rollingFileName}*.log">
|
|
<IfLastModified age="2d">
|
|
<IfAny>
|
|
<IfAccumulatedFileCount exceeds="10"/>
|
|
</IfAny>
|
|
</IfLastModified>
|
|
</IfFileName>
|
|
</Delete>
|
|
</DefaultRolloverStrategy>
|
|
</RollingFile>
|
|
</Appenders>
|
|
<Loggers>
|
|
<Root level="DEBUG" additivity="false">
|
|
<AppenderRef ref="console"/>
|
|
<AppenderRef ref="rollingFile"/>
|
|
</Root>
|
|
</Loggers>
|
|
</Configuration> |