public function logParserError($type, $code, $line, $variables = array())
    {
        $message = $this->__($code, $variables);
        $this->log($message, LogLevel::ERROR);
        $this->dispatch(
            'parser.log',
            LogEvent::createInstance($this)
                ->setMessage($message)
                ->setType($type)
                ->setCode($code)
                ->setLine($line)
        );
    }