classes/phing/listener/DefaultLogger.php
public function messageLogged(BuildEvent $event)
    {
        $priority = $event->getPriority();
        if ($priority <= $this->msgOutputLevel) {
            $msg = "";
            if ($event->getTask() !== null && !$this->emacsMode) {
                $name = $event->getTask();
                $name = $name->getTaskName();
                $msg = str_pad("[$name] ", self::LEFT_COLUMN_SIZE, " ", STR_PAD_LEFT);
            }

            $msg .= $event->getMessage();

            if ($priority != Project::MSG_ERR) {
                $this->printMessage($msg, $this->out, $priority);
            } else {
                $this->printMessage($msg, $this->err, $priority);
            }
        }
    }
public function messageLogged(BuildEvent $event)
    {
        $priority = $event->getPriority();
        if ($priority <= $this->msgOutputLevel) {
            $msg = "";
            if ($event->getTask() !== null && !$this->emacsMode) {
                $name = $event->getTask();
                $name = $name->getTaskName();
                $msg = str_pad("[$name] ", self::LEFT_COLUMN_SIZE, " ", STR_PAD_LEFT);
            }

            $msg .= $event->getMessage();

            if ($priority != Project::MSG_ERR) {
                $this->printMessage($msg, $this->out, $priority);
            } else {
                $this->printMessage($msg, $this->err, $priority);
            }
        }
    }
public function messageLogged ( BuildEvent $ event ) { $ priority = $ event -> getPriority ( ) ; if ( $ priority <= $ this -> msgOutputLevel ) { $ msg = "" ; if ( $ event -> getTask ( ) !== null && ! $ this -> emacsMode ) { $ name = $ event -> getTask ( ) ; $ name = $ name -> getTaskName ( ) ; $ msg = str_pad ( "[$name] " , self :: LEFT_COLUMN_SIZE , " " , STR_PAD_LEFT ) ; } $ msg .= $ event -> getMessage ( ) ; if ( $ priority != Project :: MSG_ERR ) { $ this -> printMessage ( $ msg , $ this -> out , $ priority ) ; } else { $ this -> printMessage ( $ msg , $ this -> err , $ priority ) ; } } }
Print a message to the stdout.

@param BuildEvent $event
@see   BuildEvent::getMessage()
Print a message to the stdout .