original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Rotate log file
  
  @param bool $resetTimer
  
  @throws RuntimeException Thrown if new file cannot be opened for write
docstring_tokens: Rotate log file