-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logfile should be recreated if it got deleted while the server is running. #36
Comments
Hey Andreas, thanks for the note. I think this would be a reasonable improvement to make, but just to clarify - is deletion of the log file on the server a regular occurrence in your infrastructure, or was this just a one-off? (I.e. are you using a log collector that does this automatically?) |
I just hit this. I deleted the file and expected it to be recreated. It's not something that I would hope would happen in production but nevertheless, seems a large hole |
Had a quick look at the sink, seems to be an issue with serilog/serilog-sinks-file which is a dependency of this project. Perhaps the issue should be raised there? |
As it's unlikely at present that we'll enable the functionality in RollingFile, let's move discussion over to: serilog/serilog-sinks-file#96 Thanks for all the input on this 👍 |
That's what I'm currently experiencing.
When deleting the logfile while the server is still running, I'm expecting the running server to recreate the log file.
Currently I'd have to restart the server (ouch) just to get the logfile back again.
The text was updated successfully, but these errors were encountered: