code: func GetAllLogs(log string) ([]string, error) {
  	// pattern is used to match all rotated files.
  	pattern := fmt.Sprintf("%s.*", log)
  	logs, err := filepath.Glob(pattern)
  	if err != nil {
  		return nil, fmt.Errorf("failed to list all log files with pattern %q: %v", pattern, err)
  	}
  	inuse, _ := filterUnusedLogs(logs)
  	sort.Strings(inuse)
  	return append(inuse, log), nil
  }
docs: // GetAllLogs gets all inuse (rotated/compressed) logs for a specific container log.
  // Returned logs are sorted in oldest to newest order.
  // TODO(#59902): Leverage this function to support log rotation in `kubectl logs`.