[issue33508] [logging] allow %p code to put PID into log filename

2018-05-15 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue33508] [logging] allow %p code to put PID into log filename

2018-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > Python logging is not multi-process safe. Covered in https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes You can certainly arrange to have the pid in the filename without a change to the stdlib. I don't propo

[issue33508] [logging] allow %p code to put PID into log filename

2018-05-14 Thread Steve R. Hastings
New submission from Steve R. Hastings : 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 f