logging-mp is a lightweight Python logging tool designed to solve issues like log disorder, loss, and sequence confusion in multiprocessing environments. It also supports beautiful terminal output powered by rich.
✅ Multiprocessing safe: implemented with multiprocessing.Queue and QueueHandler
✅ Dedicated log listener process: avoids blocking the main process
✅ Colored terminal output: integrated with rich.logging.RichHandler
✅ Supports dynamic log level setting: compatible with logging.DEBUG/INFO/WARNING/...
✅ Simple and easy to use: start with just one line of code, no complex configuration required
pip install logging-mpor clone this repository:
git clone https://github.com/silencht/logging-mp.git
cd logging-mp/utils/logging_mp
pip install -e .See test_log_tool_mp.py
This project is licensed under the MIT License.