protected function _logInternalError($exception)
    {
        // Disable trace for internal errors.
        $this->_options['trace'] = false;
        $message = sprintf(
            "[%s] %s\n%s", // Keeping same message format
            get_class($exception),
            $exception->getMessage(),
            $exception->getTraceAsString()
        );
        trigger_error($message, E_USER_ERROR);
    }