public function rotate($resetTimer = true)
    {
        if (!$this->config["blocking"]) {
            while (!empty($this->asyncBuffer)) {
                $this->flush();
            }
        }

        if ($resetTimer) {
            $this->lastRotationTime = time();
        }

        $this->log(self::INFO, "Rotating log file...");
        fclose($this->destinationHandler);
        $this->createFileHandler();
    }
public function rotate($resetTimer = true)
    {
        if (!$this->config["blocking"]) {
            while (!empty($this->asyncBuffer)) {
                $this->flush();
            }
        }

        if ($resetTimer) {
            $this->lastRotationTime = time();
        }

        $this->log(self::INFO, "Rotating log file...");
        fclose($this->destinationHandler);
        $this->createFileHandler();
    }
public function rotate ( $ resetTimer = true ) { if ( ! $ this -> config [ "blocking" ] ) { while ( ! empty ( $ this -> asyncBuffer ) ) { $ this -> flush ( ) ; } } if ( $ resetTimer ) { $ this -> lastRotationTime = time ( ) ; } $ this -> log ( self :: INFO , "Rotating log file..." ) ; fclose ( $ this -> destinationHandler ) ; $ this -> createFileHandler ( ) ; }
Rotate log file

@param bool $resetTimer

@throws RuntimeException Thrown if new file cannot be opened for write
Rotate log file