11

For a program configuration block in Supervisord, is it necessary to set stderr_logfile if redirect_stderr is true?

stderror_logfile=/path/to/logfile/stderr.log
stdout_logfile=/path/to/logfile/stdout.log
redirect_stderr=true

Since redirect_stderr is true, this should mean that stderr.log will be empty, and the combination of stderr and stdout streams will show up in sdtout.log. Is my understanding correct?

1 Answer 1

17

Quoting Supervisord configuration file documentation :

redirect_stderr
If true, cause the process’ stderr output to be sent back to supervisord on its stdout file descriptor (in UNIX shell terms, this is the equivalent of executing /the/program 2>&1).

stderr_logfile
Put process stderr output in this file unless redirect_stderr is true.

Then yes, both stderr and stdout will appear in stdout.log, and stderr.log will remain empty.

1
  • Thx, seemed like that's what the docs meant, but wanted to double check.
    – hgcrpd
    Jul 16, 2013 at 5:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .