Use syslog instead.
Links to an NSO rsyslog based example (works the same way with ConfD, enable syslog for the logs in confd.conf):
https://gitlab.com/nso-developer/ha-hcc/-/blob/main/rule-upgrade-l2/Dockerfile#L44
https://gitlab.com/nso-developer/ha-hcc/-/blob/main/rule-upgrade-l2/Dockerfile#L13
https://gitlab.com/nso-developer/ha-hcc/-/blob/main/rule-upgrade-l2/node-etc/node_setup.sh#L47
Also add something like this to your confd.conf if it is not there already:
<logs>
<syslogConfig>
<facility>daemon</facility>
</syslogConfig>
...
</logs>