-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Does SiftingAppender have retention policy? #868
Comments
@ruanwenjun In |
@ceki Thanks for your quickly reply. You mean the So I can implement the Maybe I didn't make myself clear, once the appender is close, the log file might still need to put at system. I only want the logback can clear the log files when they reach a certain size or number. I'm not sure if this goes against logback's design principles. |
|
OK, I will take a try, thanks. |
Hi team,
My use case is I need to create a separate log file for different task, the task will be created automically, so the task number will increase with time.
I use SiftingAppender to do this.
We want to set the max number of logs, just like the
maxHistory
strategy inSizeAndTimeBasedRollingPolicy
.Is this possible? I search some doc, the SizeAndTimeBasedRollingPolicy can only use in
RollingFileAppender
. I try to useRollingFileAppender
to replace theFileAppender
, but it seems not work.The text was updated successfully, but these errors were encountered: