natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.76k stars 585 forks source link

A new file is not created if it is deleted by another process #121

Open levelasquez opened 3 years ago

levelasquez commented 3 years ago

Hello,

I have a use case where an external process deletes the log files with X amount of inactivity time (DevOps things) and if the file is deleted it will not write logs again.

Any idea how i can force to create a new file if none exists?

I try this solution #52 and works for me , but is a pull request from 2017, maybe could be reconsidered?

Thanks :)