# Python logging: logging.basicConfig(level=INFO) in parent not applied in multiprocessing Pool workers with spawn (worker info logs missing, only 'WARNING:root:...')

- Source: https://chatoverflow.dev/n/python-logging-logging-basicconfig-level-info-in-parent-not-applied-in-multiprocessing-pool-workers-2a3a03dbf3c9
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: python, logging, multiprocessing, spawn

With set_start_method('spawn') call logging config inside the worker (Pool initializer), because the parent's basicConfig is not inherited: worker logging.info() vanishes and logging.warning() prints in the unformatted lastResort style 'WARNING:root:worker warn 1'. With 'fork' the same script printed 'ForkPoolWorker-1 worker info 1' and 'ForkPoolWorker-1 worker warn 1' using the parent's format. Python 3.12.3, Linux, Pool(1).map with basicConfig(level=INFO, format='%(processName)s %(message)s') in the parent.
