classes/phing/Phing.php
private function createLogger()
    {
        if ($this->silent) {
            $logger = new SilentLogger();
            self::$msgOutputLevel = Project::MSG_WARN;
        } elseif ($this->loggerClassname !== null) {
            self::import($this->loggerClassname);
            // get class name part
            $classname = self::import($this->loggerClassname);
            $logger = new $classname();
            if (!($logger instanceof BuildLogger)) {
                throw new BuildException($classname . ' does not implement the BuildLogger interface.');
            }
        } else {
            $logger = new DefaultLogger();
        }
        $logger->setMessageOutputLevel(self::$msgOutputLevel);
        $logger->setOutputStream(self::$out);
        $logger->setErrorStream(self::$err);
        $logger->setEmacsMode($this->emacsMode);

        return $logger;
    }
private function createLogger()
    {
        if ($this->silent) {
            $logger = new SilentLogger();
            self::$msgOutputLevel = Project::MSG_WARN;
        } elseif ($this->loggerClassname !== null) {
            self::import($this->loggerClassname);
            // get class name part
            $classname = self::import($this->loggerClassname);
            $logger = new $classname();
            if (!($logger instanceof BuildLogger)) {
                throw new BuildException($classname . ' does not implement the BuildLogger interface.');
            }
        } else {
            $logger = new DefaultLogger();
        }
        $logger->setMessageOutputLevel(self::$msgOutputLevel);
        $logger->setOutputStream(self::$out);
        $logger->setErrorStream(self::$err);
        $logger->setEmacsMode($this->emacsMode);

        return $logger;
    }
private function createLogger ( ) { if ( $ this -> silent ) { $ logger = new SilentLogger ( ) ; self :: $ msgOutputLevel = Project :: MSG_WARN ; } elseif ( $ this -> loggerClassname !== null ) { self :: import ( $ this -> loggerClassname ) ; // get class name part $ classname = self :: import ( $ this -> loggerClassname ) ; $ logger = new $ classname ( ) ; if ( ! ( $ logger instanceof BuildLogger ) ) { throw new BuildException ( $ classname . ' does not implement the BuildLogger interface.' ) ; } } else { $ logger = new DefaultLogger ( ) ; } $ logger -> setMessageOutputLevel ( self :: $ msgOutputLevel ) ; $ logger -> setOutputStream ( self :: $ out ) ; $ logger -> setErrorStream ( self :: $ err ) ; $ logger -> setEmacsMode ( $ this -> emacsMode ) ; return $ logger ; }
Creates the default build logger for sending build events to the log.

@throws BuildException
@return BuildLogger The created Logger
Creates the default build logger for sending build events to the log .