Change record status: 
Project: 
Introduced in branch: 
8.5.x
Introduced in version: 
8.5.0
Description: 

Since Drupal 8.0.0, logger implementations receive the raw PHP backtrace when logging exceptions via, for example, the ExceptionLoggingSubscriber into the 'backtrace' variable.

As of now, _drupal_log_error() will also pass the raw PHP backtrace to logger implementations, so it is available when logging PHP errors.

Impacts: 
Module developers