code: func RotateFile() error {
  	logger := FromContext(context.Background())
  
  	if logFile == nil && logFilePath == "" {
  		logger.Debug("Traefik log is not writing to a file, ignoring rotate request")
  		return nil
  	}
  
  	if logFile != nil {
  		defer func(f *os.File) {
  			_ = f.Close()
  		}(logFile)
  	}
  
  	if err := OpenFile(logFilePath); err != nil {
  		return fmt.Errorf("error opening log file: %s", err)
  	}
  
  	return nil
  }
docs: // RotateFile closes and reopens the log file to allow for rotation
  // by an external source.  If the log isn't backed by a file then
  // it does nothing.