You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm feeling that it's a bit complex when we have two demisions in consider: datetime and num (rotated by size).
+1. I'm not sure whether logforth could provide a pluggable rolling policy, that means I could implement it by myself if logforth don't want to maintain this.
Activity
zuston commentedon Jul 10, 2025
cc @tisonkun
tisonkun commentedon Jul 10, 2025
Sounds reasonable. Would you like to submit a patch?
zuston commentedon Jul 10, 2025
Sure.
tisonkun commentedon Jul 31, 2025
@zuston could you provide a link to how log4j (and perhaps logback) name their files?
I'm feeling that it's a bit complex when we have two demisions in consider: datetime and num (rotated by size).
That said, we can of course have:
and
In the second situation, we have two
.logfiles without any number. And sorting these files can be a bit complex if you want it.zuston commentedon Aug 1, 2025
https://logging.apache.org/log4j/2.x/manual/appenders/rolling-file.html#RolloverStrategy-index
+1. I'm not sure whether logforth could provide a pluggable rolling policy, that means I could implement it by myself if logforth don't want to maintain this.
tisonkun commentedon Sep 6, 2025
More refs -
tisonkun commentedon Sep 6, 2025
We'll
filename_prexfixtofilenameand make it required.current_count.<filename>.<filename_suffix><filename>.<date>.<cnt>.<filename_suffix>on rolling over.tisonkun commentedon Sep 6, 2025
We need to implement
<filename>.<date>.<cnt>.<filename_suffix>and sort with(date, cnt).tisonkun commentedon Sep 7, 2025
Implementing at #159
@zuston welcome to give a review