src/LogFormatter.php
public function write($str) {
        if (feof($this->outputHandle)) {
            trigger_error('Called LogFormatter::write() but file handle was closed.', E_USER_WARNING);
            return;
        }
        fwrite($this->outputHandle, $str);
    }
public function write($str) {
        if (feof($this->outputHandle)) {
            trigger_error('Called LogFormatter::write() but file handle was closed.', E_USER_WARNING);
            return;
        }
        fwrite($this->outputHandle, $str);
    }
public function write ( $ str ) { if ( feof ( $ this -> outputHandle ) ) { trigger_error ( 'Called LogFormatter::write() but file handle was closed.' , E_USER_WARNING ) ; return ; } fwrite ( $ this -> outputHandle , $ str ) ; }
Write a string to the CLI.

This method is intended to centralize the echoing of output in case the class is subclassed and the behaviour
needs to change.

@param string $str The string to write.
Write a string to the CLI .