mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-25 23:55:56 +03:00
[GH-ISSUE #1448] Add stacktrace to PHP info/warning messages #610
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#610
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 @m-ober on GitHub (Apr 7, 2020).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1448
I'm using
For PHP errors (like call to undefined functions) as well as Exceptions, stack traces are now included in the log. But for warnings like
There is no stack trace, which makes it almost impossible to track the problem. Xdebug always shows stack traces, but of course that's only useful when developing.
@Seldaek commented on GitHub (May 11, 2020):
I guess maybe this could be done by passing a
new ErrorExceptioninto the context data inhttps://github.com/Seldaek/monolog/blob/master/src/Monolog/ErrorHandler.phpand adjusting the stack trace generation to ignore the ErrorHandler frame from the stack trace when it is an ErrorException.@stefanfisk commented on GitHub (Aug 13, 2020):
How about https://www.php.net/manual/en/function.debug-backtrace.php?
@nox-4O4 commented on GitHub (Mar 4, 2025):
This will probably change in PHP 8.5: https://wiki.php.net/rfc/error_backtraces_v2