natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.79k stars 591 forks source link

add RotateDaily #76

Closed sunzhy closed 5 years ago

sunzhy commented 5 years ago

add RotateDaily

natefinch commented 5 years ago

I don't believe in rotating on a per-time basis. This has come up before - https://github.com/natefinch/lumberjack/issues/17

If you need to, you can implement this outside of Lumberjack and just call the rotate method manually... however I don't really recommend it.