Skip to content

Commit

Permalink
Improved rolled log file naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
kausandr committed Feb 3, 2022
1 parent cbe3ca7 commit 6dfc647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<!-- ### direct log messages to file rolling on startup ### -->
<RollingFile name="file"
fileName="${log4j.logs.file.name}"
filePattern="${log4j.logs.file.name}.%d{yyyyMMddHHmmssSSS}.gz"
ignoreExceptions="false" append="false">
filePattern="${log4j.logs.file.name}.%d{yyyyMMdd_HHmmss_SSS}.gz"
ignoreExceptions="false" append="true">
<Policies>
<OnStartupTriggeringPolicy/>
<!-- <SizeBasedTriggeringPolicy size="2 MB"/> -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<!-- ### direct log messages to file rolling on startup ### -->
<RollingFile name="file"
fileName="${log4j.logs.file.name}"
filePattern="${log4j.logs.file.name}.%d{yyyyMMddHHmmssSSS}.gz"
ignoreExceptions="false" append="false">
filePattern="${log4j.logs.file.name}.%d{yyyyMMdd_HHmmss_SSS}.gz"
ignoreExceptions="false" append="true">
<Policies>
<OnStartupTriggeringPolicy/>
<!-- <SizeBasedTriggeringPolicy size="2 MB"/> -->
Expand Down

0 comments on commit 6dfc647

Please sign in to comment.