yii\base\ErrorHandler::logException PHP Метод

logException() публичный Метод

Logs the given exception
С версии: 2.0.3 this method is now public.
public logException ( Exception $exception )
$exception Exception the exception to be logged
    public function logException($exception)
    {
        $category = get_class($exception);
        if ($exception instanceof HttpException) {
            $category = 'yii\\web\\HttpException:' . $exception->statusCode;
        } elseif ($exception instanceof \ErrorException) {
            $category .= ':' . $exception->getSeverity();
        }
        Yii::error($exception, $category);
    }