[issue4749] Issue with RotatingFileHandler logging handler on Windows
Frans
report at bugs.python.org
Sun Jun 7 21:12:01 CEST 2009
Frans <Frans.van.Nieuwenhoven at gmail.com> added the comment:
Hi Vinay,
Thanks for your info. I have just shared my experience. I ran into a problem
(apperently, there is one) and found a work-around that fits my needs.
If I find the real fix, I will surely follow up on it.
Regards,
Frans
2009/6/7 Vinay Sajip <report at bugs.python.org>
>
> Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
>
> 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.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue4749>
> _______________________________________
>
----------
Added file: http://bugs.python.org/file14219/unnamed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4749>
_______________________________________
-------------- next part --------------
Hi Vinay, <br><br>Thanks for your info. I have just shared my experience. I ran into a problem (apperently, there is one)Â and found a work-around that fits my needs.<br>If I find the real fix, I will surely follow up on it.<br>
<br>Regards,<br><br>Frans<br><br><br><div class="gmail_quote">2009/6/7 Vinay Sajip <span dir="ltr"><<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Vinay Sajip <<a href="mailto:vinay_sajip at yahoo.co.uk">vinay_sajip at yahoo.co.uk</a>> added the comment:<br>
<br>
ConcurrentLogHandler is for multiple *processes* writing to the same<br>
file, not multiple threads in a single process. Python logging does not<br>
support multiple processes writing to the same file because there is no<br>
portable IPC locking across all platforms supported by Python.<br>
ConcurrentLogHandler uses portalocker to achieve interprocess<br>
synchronization, and there is no equivalent mechanism which is part of<br>
the Python stdlib. AFAIK portalocker works on Windows and Linux - I'm<br>
not sure about other platforms.<br>
<br>
Python logging *does* support multiple threads in a single process<br>
writing to the same file, which is why I asked Robert if it was<br>
definitely a single-process environment he was working in.<br>
<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker <<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>><br>
<<a href="http://bugs.python.org/issue4749" target="_blank">http://bugs.python.org/issue4749</a>><br>
_______________________________________<br>
</div></div></blockquote></div><br>
More information about the Python-bugs-list
mailing list