mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Updated rolling logs config to also be size based (#1478)
This commit is contained in:
parent
890425a8b6
commit
c5460941c4
@ -10,13 +10,16 @@
|
|||||||
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
|
<!-- Based on filePattern resolution, so daily -->
|
||||||
<TimeBasedTriggeringPolicy />
|
<TimeBasedTriggeringPolicy />
|
||||||
|
<SizeBasedTriggeringPolicy size="100 MB" />
|
||||||
<OnStartupTriggeringPolicy />
|
<OnStartupTriggeringPolicy />
|
||||||
</Policies>
|
</Policies>
|
||||||
<DefaultRolloverStrategy>
|
<DefaultRolloverStrategy>
|
||||||
<Delete basePath="logs">
|
<Delete basePath="logs">
|
||||||
<IfFileName glob="*.log.gz" />
|
<IfFileName glob="*.log.gz" />
|
||||||
<IfLastModified age="7d" />
|
<IfLastModified age="7d" />
|
||||||
|
<IfAccumulatedFileCount exceeds="20"/>
|
||||||
</Delete>
|
</Delete>
|
||||||
</DefaultRolloverStrategy>
|
</DefaultRolloverStrategy>
|
||||||
</RollingRandomAccessFile>
|
</RollingRandomAccessFile>
|
||||||
|
Loading…
Reference in New Issue
Block a user