Adding support for time-based Log Rotation #13

wants to merge 6 commits into


None yet

2 participants


In my project there was a requirement to rotate logs at 4:00 AM every morning. As you know, It is a common use-case to rotate the logs. So I implemented the same and committing it back to repository. Please go through the changes I've made and see if it can be merged along with your master (w/ or w/o modifications).

I have modified the Readme & also added an example of how to make use of this feature at:

Please review and provide your suggestions if any.

tj commented Apr 9, 2012



Sorry, I didn't get you.

If you are suggesting to use Linux's logrotate command, then let me tell you I already tried it. It doesn't work, because of some issue with file-handle. Moreover, logrotate is not available on all the flavours of Linux, even if we ignore Windows.

tj commented Jan 16, 2013

different lib or tool

@tj tj closed this Jan 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment