1

Reading through the Caddy docs for log directive, I am unsure how to modify the Caddyfile if we want to log both stdout and stderr.

I tried starting Caddy without errors using the following Caddyfile but I am unsure how to test that it is actually logging both stdout and stderr. Will appreciate some help here. Thanks!

my.website.com {
    reverse_proxy localhost:3000

    log {
        output stdout
        level DEBUG
    }

    log {
        output stderr
        level DEBUG
    }
}
gameveloster
  • 901
  • 1
  • 6
  • 18
  • I believe all logs are written to the output you select, so all logs to stdout, or stderr, or in your case both. You could probably test with running the caddy binary with this config and checking which pipe it outputs the logs. – datu-puti Jul 22 '23 at 12:22

0 Answers0