Skip to content
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

Closed
derFunk opened this issue Nov 11, 2016 · 4 comments
Closed

Comments

@derFunk
Copy link

derFunk commented Nov 11, 2016

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.

@nblumhardt
Copy link
Member

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?)

@jchannon
Copy link

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

@JoeStead
Copy link

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?

@nblumhardt
Copy link
Member

nblumhardt commented Apr 22, 2019

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants