[issue43107] RotatingFileHandler with multi processes creates too small backup files

2021-02-05 Thread Vinay Sajip
Vinay Sajip added the comment: This is not a bug. See https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes You should use SocketHandler or QueueHandler to deal with a situation where multiple processes log to files (whether rotating or not).

[issue43107] RotatingFileHandler with multi processes creates too small backup files

2021-02-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +23248 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24442 ___ Python tracker

[issue43107] RotatingFileHandler with multi processes creates too small backup files

2021-02-02 Thread Yotam Medini
New submission from Yotam Medini : Using RotatingFileHandler by multi-processes when they reach a point for rotation (roll-over) they continue on separate files. Two problems: 1. Eventually some backup files are left with sizes much less than the maxBytes configuration. 2. Intertwining