How do I use includeStacktraces?
berniedurfee-renaissance opened this issue · 1 comments
berniedurfee-renaissance commented
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 commented
Yes, ['exception' => $e]
in context and then ->includeStacktraces(true)
on the formatter should output full stack traces.