Mapping Multiprocessing Logs to stdout/stderr
In this example you can see how I am mapping everything we have in logs dir to stdout/stderr.
[!CAUTION]
This code only maps the logs in
/app/logsdirectory tostdout/stderr.
- I created
tail-logs.shwhich is just mapping logs tostdout/stderr. - And then whenever I spawn a new process I am storing its logs in logs dir and in my
MakefileI start my Python app in background so I can then say:./tail-logs.shwhich will run thetailcommand.