How to log daemon processes

I want to start celery & celery beat in the same background worker service in Render. This requires me to daemonize these services (using initd). However, now that these two run in the background, where should I point the logs to be written to? Since Render is read only, I don’t know if I can write to a .log file. And similarly for the .pid file.

In other words, how can I point stuff from my custom process to Render Log Streams as based in this doc: (Log Streams - Integrate with Third-Party Logging Providers | Render) or is it only the stdout that gets passed on to log streams?

Hi Julian,
You’ve answered it there- anything written to STDOUT will be written to the log stream,

Regards,

John B

1 Like

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.