Kubernetes readinessProbe livenessProbe using script

Hi ,
I am trying to execute readiness/liveness probe using bash script as below but not able to redirect script output to container logs or standard out. Is it not possible to to route logs from script to container logs ? Any suggestion

livenessProbe:
  exec:
    command:
    - /bin/sh
    - /home/test/check.sh

The stdout/stderr of probes is not really captured. You could write it to a file?

It seems like a plausible feature request, but we’re swimming in those right now and I would not want to make anyone think it is the sort of thing that can just be slapped together.