mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
EG-71 - Changed the default file limit in the log4j2 configuration (#5996)
* Changed the default file limit in the log4j2 configuration to address roll over issue described in EG-71 * Updated the default file limit in the comment
This commit is contained in:
parent
d037dc0d06
commit
f6c30453a2
@ -66,8 +66,8 @@
|
|||||||
<PatternLayout pattern="%msg%n%throwable{0}" />
|
<PatternLayout pattern="%msg%n%throwable{0}" />
|
||||||
</Console>
|
</Console>
|
||||||
|
|
||||||
<!-- Will generate up to 100 log files for a given day. During every rollover it will delete
|
<!-- Will generate up to 500 log files for a given day. Adjust this number according to the available storage.
|
||||||
those that are older than 60 days, but keep the most recent 10 GB -->
|
During every rollover it will delete those that are older than 60 days, but keep the most recent 10 GB -->
|
||||||
<RollingRandomAccessFile name="RollingFile-Appender"
|
<RollingRandomAccessFile name="RollingFile-Appender"
|
||||||
fileName="${log-path}/${log-name}.log"
|
fileName="${log-path}/${log-name}.log"
|
||||||
filePattern="${archive}/${log-name}.%date{yyyy-MM-dd}-%i.log.gz">
|
filePattern="${archive}/${log-name}.%date{yyyy-MM-dd}-%i.log.gz">
|
||||||
@ -93,7 +93,7 @@
|
|||||||
<SizeBasedTriggeringPolicy size="100MB"/>
|
<SizeBasedTriggeringPolicy size="100MB"/>
|
||||||
</Policies>
|
</Policies>
|
||||||
|
|
||||||
<DefaultRolloverStrategy min="1" max="100">
|
<DefaultRolloverStrategy min="1" max="500">
|
||||||
<Delete basePath="${archive}" maxDepth="1">
|
<Delete basePath="${archive}" maxDepth="1">
|
||||||
<IfFileName glob="${log-name}*.log.gz"/>
|
<IfFileName glob="${log-name}*.log.gz"/>
|
||||||
<IfLastModified age="60d">
|
<IfLastModified age="60d">
|
||||||
|
Loading…
Reference in New Issue
Block a user