classes/phing/Task.php
public function log($msg, $level = Project::MSG_INFO, Exception $t = null)
    {
        if ($this->getProject() !== null) {
            $this->getProject()->logObject($this, $msg, $level, $t);
        } else {
            parent::log($msg, $level);
        }
    }
public function log($msg, $level = Project::MSG_INFO, Exception $t = null)
    {
        if ($this->getProject() !== null) {
            $this->getProject()->logObject($this, $msg, $level, $t);
        } else {
            parent::log($msg, $level);
        }
    }
public function log ( $ msg , $ level = Project :: MSG_INFO , Exception $ t = null ) { if ( $ this -> getProject ( ) !== null ) { $ this -> getProject ( ) -> logObject ( $ this , $ msg , $ level , $ t ) ; } else { parent :: log ( $ msg , $ level ) ; } }
Provides a project level log event to the task.

@param string $msg The message to log
@param int $level The priority of the message
@param Exception|null $t
@see   BuildEvent
@see   BuildListener
Provides a project level log event to the task .