-
Notifications
You must be signed in to change notification settings - Fork 780
tracing_appender file name without date for rolling logs #2701
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
Comments
There is no option for this at the moment. Out of curiosity, what behavior would you expect for older files that have since rolled over? |
Older files can have date or other prefixes, it is Ok. |
I'll second this request. One of our key clients (a major institution) expects the current log to always be named the same so that their log consolidation processes can pick it up nicely and that the older logs have the date postfix. Further, they would like them grouped by month and compressed (the older logs that is). The later is obviously a second request. |
Thanks for explaining that, and I'm sorry for the delay in responding. The primary maintainers of this I think we've been low on capacity to spend time on |
@davidbarsky I think exposing a should_rotate and on_rotate closures would be great. Then each of us can implement the behavior needed including proper file naming and handling of the rotated logs (including things like compressing them if needed, etc.). One thing that is important is that the current log not have the appended date. It really causes problems for our DevOps folks with the log name changing every day. So, if there was some way to make sure RollingFileAppender didn't append that date to the current day's log and you added the closures my needs (selfishly) would be met. THANK YOU for considering these updates |
@davidbarsky this sounds pretty nice! I could help implement it when the sketch is out. |
@davidbarsky Or I could open an issue and write a simple sketch first? |
You could easilly write your implementation of write to file, |
That's a one approach that would work @incker , but perhaps not as clean as what @davidbarsky proposed and @SpeedReach offerred to help with. I would have kept this open for them to work under but perhaps they will create their own ticket now for their approach. |
Sorry for the delay. I'll open an issue with those details later today. |
Hello!
It is more just a question.
Is it possible to write rolling logs to file that have name without date. Not
debug.2023-08-29-09-32
but justdebug
Forward thank you
The text was updated successfully, but these errors were encountered: