natefinch / lumberjack

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

First write rotation won't clean up backups #12

Closed natefinch closed 9 years ago

natefinch commented 9 years ago

If you start your application with multiple backups in your log folder, and your first write to lumberjack would cause the existing file to go over the max size, we just rename the existing file and create a new one, without going through cleanup of old backups.

natefinch commented 9 years ago

Going to work on fixing this tonight.

natefinch commented 9 years ago

Fixed! Added a test for this issue as well.