1👍
Each worker should write to its own log file (e.g., debug.worker1.log
). You now have several processes competing to write to the same file which may mean things are not written in chronological order.
You should then use separate tools (e.g., Unix tools or logging aggregation tools) to either merge them or analyse them as needed.
Source:stackexchange.com