public function write($str, $new_line = true)
    {
        fwrite($this->stream, $str.( true===$new_line ? PHP_EOL : '' ));
        fflush($this->stream);
    }
public function write($str, $new_line = true)
    {
        fwrite($this->stream, $str.( true===$new_line ? PHP_EOL : '' ));
        fflush($this->stream);
    }
public function write ( $ str , $ new_line = true ) { fwrite ( $ this -> stream , $ str . ( true === $ new_line ? PHP_EOL : '' ) ) ; fflush ( $ this -> stream ) ; }
Write a message on `STDOUT`

@param string $str The error message string to write
@param bool $new_line Pass a new line befor exit (default is `true`)
@return void
Write a message on STDOUT