classes/phing/tasks/system/RecorderTask.php
public function main()
    {
        if ($this->filename == null) {
            throw new BuildException("No filename specified");
        }

        $this->getProject()->log("setting a recorder for name " . $this->filename, Project::MSG_DEBUG);

        // get the recorder entry
        $recorder = $this->getRecorder($this->filename, $this->getProject());
        // set the values on the recorder
        if ($this->loglevel === -1) {
            $recorder->setMessageOutputLevel($this->loglevel);
        } elseif (isset($this->logLevelChoices[$this->loglevel])) {
            $recorder->setMessageOutputLevel($this->logLevelChoices[$this->loglevel]);
        } else {
            throw new BuildException('Loglevel should be one of (error|warn|info|verbose|debug).');
        }

        $recorder->setEmacsMode(StringHelper::booleanValue($this->emacsMode));
        if ($this->start != null) {
            if (StringHelper::booleanValue($this->start)) {
                $recorder->reopenFile();
                $recorder->setRecordState($this->start);
            } else {
                $recorder->setRecordState($this->start);
                $recorder->closeFile();
            }
        }
    }
public function main()
    {
        if ($this->filename == null) {
            throw new BuildException("No filename specified");
        }

        $this->getProject()->log("setting a recorder for name " . $this->filename, Project::MSG_DEBUG);

        // get the recorder entry
        $recorder = $this->getRecorder($this->filename, $this->getProject());
        // set the values on the recorder
        if ($this->loglevel === -1) {
            $recorder->setMessageOutputLevel($this->loglevel);
        } elseif (isset($this->logLevelChoices[$this->loglevel])) {
            $recorder->setMessageOutputLevel($this->logLevelChoices[$this->loglevel]);
        } else {
            throw new BuildException('Loglevel should be one of (error|warn|info|verbose|debug).');
        }

        $recorder->setEmacsMode(StringHelper::booleanValue($this->emacsMode));
        if ($this->start != null) {
            if (StringHelper::booleanValue($this->start)) {
                $recorder->reopenFile();
                $recorder->setRecordState($this->start);
            } else {
                $recorder->setRecordState($this->start);
                $recorder->closeFile();
            }
        }
    }
public function main ( ) { if ( $ this -> filename == null ) { throw new BuildException ( "No filename specified" ) ; } $ this -> getProject ( ) -> log ( "setting a recorder for name " . $ this -> filename , Project :: MSG_DEBUG ) ; // get the recorder entry $ recorder = $ this -> getRecorder ( $ this -> filename , $ this -> getProject ( ) ) ; // set the values on the recorder if ( $ this -> loglevel === - 1 ) { $ recorder -> setMessageOutputLevel ( $ this -> loglevel ) ; } elseif ( isset ( $ this -> logLevelChoices [ $ this -> loglevel ] ) ) { $ recorder -> setMessageOutputLevel ( $ this -> logLevelChoices [ $ this -> loglevel ] ) ; } else { throw new BuildException ( 'Loglevel should be one of (error|warn|info|verbose|debug).' ) ; } $ recorder -> setEmacsMode ( StringHelper :: booleanValue ( $ this -> emacsMode ) ) ; if ( $ this -> start != null ) { if ( StringHelper :: booleanValue ( $ this -> start ) ) { $ recorder -> reopenFile ( ) ; $ recorder -> setRecordState ( $ this -> start ) ; } else { $ recorder -> setRecordState ( $ this -> start ) ; $ recorder -> closeFile ( ) ; } } }
The main execution.

@throws BuildException on error
The main execution .