private function isRotationNeeded()
    {
        clearstatcache();
        
        if (! file_exists($this->file)) {
            return false;
        }
        
        $result = false;
        
        $attributes = stat($this->file);
        
        if ($attributes == false || $attributes['size'] >= $this->maxLogSize * 1024 * 1024) {
            $result = true;
        }
        
        return $result;
    }