code: 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;
      }
docs: Checks whether a rotation of log file is necessary
  
  @return boolean true in case of its necessary, false otherwise