multiprocessing.log_to_stderr
Prev: multiprocessing.Lock | Up: multiprocessing | Next: multiprocessing.Manager
Rel: multiprocessing.active_children, multiprocessing.allow_connection_pickling, multiprocessing.Array, multiprocessing.AuthenticationError
Ref: docs.python.org — multiprocessing.log_to_stderr
Tags: #public #python3 #stdlib #multiprocessing
Import
import multiprocessing
from multiprocessing import log_to_stderr
Signature & Overview
multiprocessing.log_to_stderr(level=None)
Turn on logging and add a handler which prints to stderr
Usage
import logging
import multiprocessing as mp
logger = mp.log_to_stderr(logging.WARNING)
assert logger.level == logging.WARNING
Gotchas
- Quick debugging toggle: Sends
multiprocessinginternal events straight to stderr.
REPL Inspect
from multiprocessing import log_to_stderr
help(log_to_stderr)
Linked from
Related notes
- tuts/python3/stdlib_module/multiprocessing/Lock Linked here; links to this page; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/Manager Linked here; links to this page; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/multiprocessing/active_children Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/allow_connection_pickling Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/Array Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/AuthenticationError Linked here; shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/Barrier shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/BoundedSemaphore shared tags: #multiprocessing, #stdlib
- tuts/python3/stdlib_module/multiprocessing/BufferTooShort shared tags: #multiprocessing, #stdlib