Skip to content

Commit

Permalink
rearrange log file pattern to always end in .log
Browse files Browse the repository at this point in the history
  • Loading branch information
akberenz committed Aug 1, 2023
1 parent eb295cb commit 7f3a3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qz/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static void setupFileLogging() {
.setLayout(PatternLayout.newBuilder().withPattern("%d{ISO8601} [%p] %m%n").build())
.setFilter(ThresholdFilter.createFilter(Level.DEBUG, Filter.Result.ACCEPT, Filter.Result.DENY))
.withFileName(FileUtilities.USER_DIR + File.separator + Constants.LOG_FILE + ".log")
.withFilePattern(FileUtilities.USER_DIR + File.separator + Constants.LOG_FILE + ".log.%i")
.withFilePattern(FileUtilities.USER_DIR + File.separator + Constants.LOG_FILE + ".%i.log")
.withStrategy(DefaultRolloverStrategy.newBuilder().withMax(String.valueOf(Constants.LOG_ROTATIONS)).build())
.withPolicy(SizeBasedTriggeringPolicy.createPolicy(String.valueOf(Constants.LOG_SIZE)))
.withImmediateFlush(true)
Expand Down

0 comments on commit 7f3a3a1

Please sign in to comment.