caddy-supervisor
caddy-supervisor copied to clipboard
Sending processes outputs to Caddy logs
I want to do smth helpfull, is this still actual?😊 So, am I right, that here we want to use caddy.Log() logger to log events from supervisors?
Hey! Thank you for your help :)
Yes, it would be great to be able to send output to caddy logs.
There are some questions:
- In which log field the output should be stored so that it's clear where it comes from?
message,supervisor_stdout, ... ? - Supervised processes may log in JSON, should it be parsed and added as a zap field for easy filtering? It would be a lot of processing for caddy (but I think just writing json encoded strings to a log field would not be good)
- Do we need to bufferize the output? (users will expect each log entry to be an process output line)
Maybe some questions can be answered via Caddyfile, example:
...
your-process {
redirect_stdout log {
field your_process_stdout
}
}