Skip to content

Conversation

@jamezp
Copy link
Contributor

@jamezp jamezp commented May 28, 2020

…e the PeriodicSizeRotatingFileHandler.

Note it was a conscious decision not to allow the SizeRotatingFileHandler if the rotate-on-boot was defined, but max-file-size was not. That seems like an odd use case as we'd have to assume some kind of maximum size. This could be Long.MAX_VALUE, but again that seems odd.

Also if this needs to be ported to the other branches let me know and I'm happy to do it.

Fixes #9259

@famod
Copy link
Member

famod commented Jun 2, 2020

How about extending https://github.com/quarkusio/quarkus/blob/master/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java#L76 so that it is clear that the suffix has to be set to make it work?

@gsmet gsmet changed the title [9259] If the rotate-on-boot is defined and there is a file-suffix us… If the rotate-on-boot is defined and there is a file-suffix use the PeriodicSizeRotatingFileHandler Jun 2, 2020
@gsmet
Copy link
Member

gsmet commented Jun 2, 2020

I pushed 2 additional commits related to docs. I agree with @famod having a mention of how it works is worthwhile.

@gsmet gsmet added this to the 1.6.0 - master milestone Jun 2, 2020
@gsmet gsmet merged commit 369c6b4 into quarkusio:master Jun 3, 2020
@gsmet gsmet modified the milestones: 1.6.0 - master, 1.5.1.Final Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

log files rotation on boot doesn't work

4 participants