natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.72k stars 580 forks source link

readme question #161

Open nikhilsaraf opened 2 years ago

nikhilsaraf commented 2 years ago

It is not clear from the README whether setting MaxSize to non-zero but maxBackups and maxAge=0 will result in rotation.

With that configuration will it just delete the old file (that just hit the maxSize) and start with a new empty file?

Can this be documented in the README please?

natefinch commented 2 years ago

That's correct, but I'll make sure to document it.