simpleflow icon indicating copy to clipboard operation
simpleflow copied to clipboard

Log only at supervisor level

Open jbbarth opened this issue 9 years ago • 0 comments

Centralizing logging in a single process would avoid having overlapping lines in the log output.

Note that the other "canonical" way to do that is to not log to stdout/a file, and use syslog instead. But syslog comes with its own problems (mainly: doesn't work out of the box in some containers (and maybe platforms?)), and I like the idea that we "simply" log to stdout.

Originally proposed in #142: "honcho uses a shared queue with its subprocesses to share logging messages and only the "manager" process logs to stdout => https://github.com/nickstenning/honcho/blob/master/honcho/manager.py ; I think it would be a good idea to do that in simpleflow too, I had lines overlapping each other in many manual tests and it's not pleasant"

jbbarth avatar Nov 07 '16 12:11 jbbarth