Skip to content

Commit

Permalink
Add max log file size to avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
utas-raymondng committed Apr 17, 2024
1 parent 2fb48e9 commit 292b643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geonetwork/src/main/resources/log4j-imos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<appender name="fileAppender" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="ALL"/>
<param name="File" value="${log_dir}logs/geonetwork.log"/>
<param name="MaxFileSize" value="5MB" />
<param name="MaxBackupIndex" value="2" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] - %m%n"/>
</layout>
Expand Down

0 comments on commit 292b643

Please sign in to comment.