Closed berniedurfee-renaissance closed 4 months ago
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?
includeStacktraces
exception
I'm using the JSON formatter.
Yes, ['exception' => $e] in context and then ->includeStacktraces(true) on the formatter should output full stack traces.
['exception' => $e]
->includeStacktraces(true)
Monolog version 2.5
I don't see any docs on how to use
includeStacktraces
. Do I add theexception
to the log context and it logs the stacktrace there?I'm using the JSON formatter.