Manual:$wgLogExceptionBacktrace/en

Details
Whether to send the exception backtrace to the standard log file or to a file defined with.