You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the logger is not set to LogHolder but a generic error handler is set in application that is set by set_error_handler, error handler is not invoked because error_log function does not trigger this.
Describe the solution you'd like
To use trigger_error instead of error_log in ErrorLogWriter to allow error handler to handle logging.
What would you think about a change like this?
The text was updated successfully, but these errors were encountered:
Yes, depending on the error handler implementation the log might turn into unhandled exception and the application could break.
What would you think about adding a "trigger_error" option to LogWriterFactory so we use it only if it is set intentionally?
I am now moving to psr3 logger for my case, but almost all containerized applications need some kind of special formatting for logging and my assumption was that I would be able to handle all logging in the error handler.
Is your feature request related to a problem?
When the logger is not set to
LogHolder
but a generic error handler is set in application that is set byset_error_handler
, error handler is not invoked becauseerror_log
function does not trigger this.Describe the solution you'd like
To use trigger_error instead of error_log in
ErrorLogWriter
to allow error handler to handle logging.What would you think about a change like this?
The text was updated successfully, but these errors were encountered: