mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 08:35:53 +03:00
[GH-ISSUE #1863] How do I use includeStacktraces? #796
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#796
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 @berniedurfee-renaissance on GitHub (Dec 21, 2023).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1863
Monolog version 2.5
I don't see any docs on how to use
includeStacktraces. Do I add theexceptionto the log context and it logs the stacktrace there?I'm using the JSON formatter.
@Seldaek commented on GitHub (Apr 12, 2024):
Yes,
['exception' => $e]in context and then->includeStacktraces(true)on the formatter should output full stack traces.