Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use includeStacktraces? #1863

Closed
berniedurfee-renaissance opened this issue Dec 21, 2023 · 1 comment
Closed

How do I use includeStacktraces? #1863

berniedurfee-renaissance opened this issue Dec 21, 2023 · 1 comment
Labels

Comments

@berniedurfee-renaissance

Monolog version 2.5

I don't see any docs on how to use includeStacktraces. Do I add the exception to the log context and it logs the stacktrace there?

I'm using the JSON formatter.

@Seldaek
Copy link
Owner

Seldaek commented Apr 12, 2024

Yes, ['exception' => $e] in context and then ->includeStacktraces(true) on the formatter should output full stack traces.

@Seldaek Seldaek closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants