multiprocessing-logging
Logger for multiprocessing applications
Decision gist · record as of 2026-08-14
Yes, if you use multiprocessing on Linux and need reliable subprocess logging. The package is stable and has no security vulnerabilities, but maintenance is aging (last release 2023). Install before creating pools or spawning processes, and avoid continuous process creation to mitigate the known fork-threading hang risk. Not suitable for Windows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only works on POSIX systems; Linux is officially supported.
- Does not work on Windows.
- PyPy3 is not recommended due to test hangs.
License · maintenance · safety
LGPLv3 (copyleft) — Licensed under LGPLv3, a copyleft license. You must disclose source code modifications and distribute under the same license if you redistribute the package or derivative works.
last release 2023-02-05 (1286 days) · last repo commit 2026-01-28 · 395 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 242,418 downloads/mo, #8,856 on PyPI
Alternatives
Verify before relying
import logging
import multiprocessing_logging
logging.basicConfig()
multiprocessing_logging.install_mp_handler()
# Call install_mp_handler() before creating multiprocessing.Pool or spawning subprocesses- Whether the fork-based approach and threading interaction issue (low probability of hangs) is acceptable for your workload.
- Current compatibility with Python versions beyond 3.10, given the aging maintenance status.
- Whether PyPy (non-3) support is stable enough for production use in your environment.
What it is and what it does
multiprocessing-logging solves the problem of garbled or lost log messages when using Python's multiprocessing module. When subprocesses log independently, their output can interleave or be lost; this package installs a handler on the root logger that tunnels all log records from child processes back to the main process for centralized handling.
The module is simple to use: call `install_mp_handler()` after configuring logging but before spawning processes or creating a Pool. It relies on the fork start method for process creation and works on POSIX systems (Linux officially supported). The documentation notes a known limitation: fork-based process creation is unsafe when threads are also in use, creating a low probability of application hangs; the recommended workaround is to create a Pool once and reuse it rather than continuously spawning new processes.
Use it for
- Aggregate logs from a multiprocessing.Pool into a single file or stream without interleaving.
- Centralize subprocess logging in a long-running daemon that spawns worker processes.
- Debug parallel workloads by collecting all subprocess output in order at the main process.
- Replace per-subprocess log files with a unified log when using fork-based multiprocessing.
- Ensure log records from child processes reach configured handlers (files, syslog, etc.) in the main process.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use multiprocessing on Linux and need reliable subprocess logging.
The package is stable and has no security vulnerabilities, but maintenance is aging (last release 2023). Install before creating pools or spawning processes, and avoid continuous process creation to mitigate the known fork-threading hang risk. Not suitable for Windows.
Install
multiprocessing-logging on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last release was in 2023 and no commits since 2026-01-28—but the package is marked Production/Stable and remains archived-free.
Only works on POSIX systems; Linux is officially supported. Does not work on Windows. PyPy3 is not recommended due to test hangs.
License in practice
Licensed under LGPLv3, a copyleft license. You must disclose source code modifications and distribute under the same license if you redistribute the package or derivative works.
Quickstart
import logging
import multiprocessing_logging
logging.basicConfig()
multiprocessing_logging.install_mp_handler()
# Call install_mp_handler() before creating multiprocessing.Pool or spawning subprocesses
Verify before relying
- Whether the fork-based approach and threading interaction issue (low probability of hangs) is acceptable for your workload.
- Current compatibility with Python versions beyond 3.10, given the aging maintenance status.
- Whether PyPy (non-3) support is stable enough for production use in your environment.
Package facts
| License | LGPLv3 copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 1,286 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 242,418 / month, #8,856 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)Operating System :: POSIXProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python Modules |
Evidence: multiprocessing_logging-0.3.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multiprocessing logging handler”
- multiprocessing-loggingProvides a logging handler that tunnels log records from…
- concurrent-log-handlerProvides thread-safe and process-safe logging handlers for Python's…
- timeout-decoratorA decorator that enforces time limits on function execution, raising…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also concurrent-log-handler · tqdm-multiprocess · seqlog · multiprocess · aws-logging-handlers · datadog-logger · cloudwatch · fluent-logger · python-logging-loki · billiard