New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to exclude "current-date" from FileWriter.daily #57
Comments
You mean having the current daily log have a consistent filename and at the conclusion of the day it gets renamed to the date stamp? |
Yes, this makes it consistent with how log4j's DailyRollingFileAppender behaves. |
I need to spend a little more time with the Thanks @andreak |
Great! |
…lexibility with file logging (Applies to #57)
@andreak take a look at the re-working of |
Ok, so instead of using .daily() I must use apply() supplying my own instance of FormattedFileLoggingManager, which takes a custom fileName func where I simply control whether or not to use the millis-value as part of the filename or not? |
Actually, you can just use |
Aha, right. |
@andreak can you close this ticket once you've confirmed it fulfills your needs? |
It looks like it'll fulfill my needs, but I have to test with actual rollover, which happens in about 35 min. :-) |
Works, closing. |
Using FileWriter.daily, the current ("today") logfile's date is part of the filename.
It would be nice to make an option for excluding the date from the current-file. This would make it easier to make existing monitoring-jobs (which today monitors log4j/slf4j files) to continue monitoring the logfiles, without needing to change them.
The text was updated successfully, but these errors were encountered: