classes/phing/tasks/ext/XmlLintTask.php
public function errorHandler($level, $message, $file, $line, $context)
    {
        $matches = [];
        preg_match('/^.*\(\): (.*)$/', $message, $matches);
        $this->log($matches[1], Project::MSG_ERR);
    }
public function errorHandler($level, $message, $file, $line, $context)
    {
        $matches = [];
        preg_match('/^.*\(\): (.*)$/', $message, $matches);
        $this->log($matches[1], Project::MSG_ERR);
    }
public function errorHandler ( $ level , $ message , $ file , $ line , $ context ) { $ matches = [ ] ; preg_match ( '/^.*\(\): (.*)$/' , $ message , $ matches ) ; $ this -> log ( $ matches [ 1 ] , Project :: MSG_ERR ) ; }
Local error handler to catch validation errors and log them through Phing

@param int $level
@param string $message
@param string $file
@param int $line
@param mixed $context

@return void
Local error handler to catch validation errors and log them through Phing