protected function attemptStreamRecovery()
    {
        if ('resource' === gettype($this->stream))
        {
            @fflush($this->stream);
            @fclose($this->stream);
        }

        $this->stream = fopen($this->streamURI, $this->streamMode);
        if (false === $this->stream)
        {
            trigger_error(sprintf(
                '%s - Unable to write to "%s" and re-open attempt failed, will default to php-output',
                get_called_class(),
                $this->streamURI));

            $this->stream = $this->defaultStream();
        }
    }
protected function attemptStreamRecovery()
    {
        if ('resource' === gettype($this->stream))
        {
            @fflush($this->stream);
            @fclose($this->stream);
        }

        $this->stream = fopen($this->streamURI, $this->streamMode);
        if (false === $this->stream)
        {
            trigger_error(sprintf(
                '%s - Unable to write to "%s" and re-open attempt failed, will default to php-output',
                get_called_class(),
                $this->streamURI));

            $this->stream = $this->defaultStream();
        }
    }
protected function attemptStreamRecovery ( ) { if ( 'resource' === gettype ( $ this -> stream ) ) { @ fflush ( $ this -> stream ) ; @ fclose ( $ this -> stream ) ; } $ this -> stream = fopen ( $ this -> streamURI , $ this -> streamMode ) ; if ( false === $ this -> stream ) { trigger_error ( sprintf ( '%s - Unable to write to "%s" and re-open attempt failed, will default to php-output' , get_called_class ( ) , $ this -> streamURI ) ) ; $ this -> stream = $ this -> defaultStream ( ) ; } }
Will attempt to re-open stream in the event that it was closed unexpectedly.  Will use default if unable to
re-open custom

@see DefaultLogger::defaultStream()
Will attempt to re - open stream in the event that it was closed unexpectedly . Will use default if unable to re - open custom