code: func isInUse(l string, logs []string) bool {
  	// All temporary files are not in use.
  	if strings.HasSuffix(l, tmpSuffix) {
  		return false
  	}
  	// All compresed logs are in use.
  	if strings.HasSuffix(l, compressSuffix) {
  		return true
  	}
  	// Files has already been compressed are not in use.
  	for _, another := range logs {
  		if l+compressSuffix == another {
  			return false
  		}
  	}
  	return true
  }
docs: // isInUse checks whether a container log file is still inuse.