mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #1915] ErrorHandler::register not working as expected #821
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#821
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kaihendry on GitHub (Sep 21, 2024).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1915
Monolog version 3.7
https://gist.github.com/kaihendry/6ad32ed135e3d679e6dd896365b252cb
The error handler is not working as expected, it shows:
@stof commented on GitHub (Sep 24, 2024):
what do you mean by "it is not working as expected" ?
@kaihendry commented on GitHub (Sep 24, 2024):
I expected monolog to hook into
error_log@stof commented on GitHub (Sep 24, 2024):
PHP's
error_logfunction does not report its messages to the PHP error handler system. It directly sends it to the PHP system logger, which is not hookable in userland.@Seldaek commented on GitHub (Nov 9, 2024):
Right the way to trigger it is to call trigger_error().. But really if you wanna trigger the logger, please call the logger :)