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();
    }