code: func (m *kubeGenericRuntimeManager) readLastStringFromContainerLogs(path string) string {
  	value := int64(kubecontainer.MaxContainerTerminationMessageLogLines)
  	buf, _ := circbuf.NewBuffer(kubecontainer.MaxContainerTerminationMessageLogLength)
  	if err := m.ReadLogs(context.Background(), path, "", &v1.PodLogOptions{TailLines: &value}, buf, buf); err != nil {
  		return fmt.Sprintf("Error on reading termination message from logs: %v", err)
  	}
  	return buf.String()
  }
docs: // readLastStringFromContainerLogs attempts to read up to the max log length from the end of the CRI log represented
  // by path. It reads up to max log lines.