Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services
https://seldaek.github.io/monolog/
MIT License
21.04k stars 1.9k forks source link

Optimistically recreate streams when write fails #1884

Closed msobkowiak-olx closed 7 months ago

msobkowiak-olx commented 7 months ago

To address https://github.com/Seldaek/monolog/issues/1860 - when fwrite() fails - only then recreate the stream resource.

Seldaek commented 7 months ago

This will not work IMO as the failure to write might be turned into an exception by some frameworks/apps, and also the failure is detected, file reopened on next log, but you still lose one log entry, so not great.