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

Log utils writer #11

Closed
Fimeo opened this issue Jun 1, 2022 · 1 comment
Closed

Log utils writer #11

Fimeo opened this issue Jun 1, 2022 · 1 comment

Comments

@Fimeo
Copy link

Fimeo commented Jun 1, 2022

Hi !

I'm using your log library because of it's simplicity. But I noticed that, when the writer output is a file, if the log file has been deleted during run time, there is no error returned by logutil.

Did they have any way to receive an event when the log utils cannot write in the output ?

Thx a lot

Fimeo

@julio77it
Copy link

Hi,

I think you can answer to your question here : https://stackoverflow.com/questions/2028874/what-happens-to-an-open-file-handle-on-linux-if-the-pointed-file-gets-moved-or-d

"If the file is deleted, the file handle remains open and can still be used (This is not what some people expect). The file will not really be deleted until the last handle is closed."

Giulio

@Fimeo Fimeo closed this as completed Feb 21, 2023
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

2 participants