[New-bugs-announce] [issue33508] [logging] allow %p code to put PID into log filename

Steve R. Hastings report at bugs.python.org
Mon May 14 16:58:10 EDT 2018


New submission from Steve R. Hastings <steveha at users.sourceforge.net>:

Python logging is not multi-process safe.  When a Python program has multiple processes, one way to log safely would be to put the process ID number into the filename of the log file, giving each process its own log file.

It would be convenient if a %p format code would be expanded to the process ID number when the logging system opens the log file.

----------
components: Library (Lib)
messages: 316576
nosy: steveha, vinay.sajip
priority: normal
severity: normal
status: open
title: [logging] allow %p code to put PID into log filename
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33508>
_______________________________________


More information about the New-bugs-announce mailing list