* $logger->logException($ex, [ * 'message' => 'Exception during background job execution' * ]); * * * @param \Exception|\Throwable $exception * @param array $context * @return void * @since 8.2.0 * @deprecated 20.0.0 use the `exception` entry in the context of any method in \Psr\Log\LoggerInterface */ public function logException(\Throwable $exception, array $context = []); }