-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
add date for ouput filename #229
Comments
Hey @xleng2019, no, you're not doing it wrong - it is just (currently) not supported. Question: why are you trying to implement the log rotation with Snoopy itself? Why not just use existing tools (i.e. logrotate) that already rotate other logs on your system? Just curious, and describing actual real word use cases usually helps with decisions what to implement in the future. PS: Technically, to work around this right now, you could run a PPS: Where did you get the idea to try the PPPS: Shouldn't be too hard to implement, though, and it's an interesting suggestion. Thanks. |
I've known that. I'm going to use logrotate. Thanks. |
…y.log-%{datetime:%Y-%m-%d}`) (Fixes GitHub issue a2o#229.)
…y.log-%{datetime:%Y-%m-%d}`) (Fixes GitHub issue a2o#229.)
Hey @xleng2019, you're in luck - some unrelated refactoring made implementing this feature very easy ;) It is currently already available in |
I tried to add "output = file:/var/log/snoopy_$(date +%Y-%m-%d) " in the config file in order to add date to the name of log file. However, it didn't work. Am I doing it the wrong way? Thx
The text was updated successfully, but these errors were encountered: