Message89031
ConcurrentLogHandler is for multiple *processes* writing to the same
file, not multiple threads in a single process. Python logging does not
support multiple processes writing to the same file because there is no
portable IPC locking across all platforms supported by Python.
ConcurrentLogHandler uses portalocker to achieve interprocess
synchronization, and there is no equivalent mechanism which is part of
the Python stdlib. AFAIK portalocker works on Windows and Linux - I'm
not sure about other platforms.
Python logging *does* support multiple threads in a single process
writing to the same file, which is why I asked Robert if it was
definitely a single-process environment he was working in. |
|
Date |
User |
Action |
Args |
2009-06-07 11:35:18 | vinay.sajip | set | recipients:
+ vinay.sajip, mramahi77, lowell87, neyro, rcronk, Frans |
2009-06-07 11:35:18 | vinay.sajip | set | messageid: <1244374518.42.0.410109776405.issue4749@psf.upfronthosting.co.za> |
2009-06-07 11:35:16 | vinay.sajip | link | issue4749 messages |
2009-06-07 11:35:16 | vinay.sajip | create | |
|