Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending processes outputs to Caddy logs #3

Open
musinit opened this issue Jul 9, 2021 · 1 comment
Open

Sending processes outputs to Caddy logs #3

musinit opened this issue Jul 9, 2021 · 1 comment

Comments

@musinit
Copy link

musinit commented Jul 9, 2021

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?

@Baldinof
Copy link
Owner

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
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants