Write by logging.FileHandler to one file by many processess

Alexandre Badez alexandre.badez at gmail.com
Wed Oct 17 09:45:46 EDT 2007


On Oct 17, 3:33 pm, Rafa  Zawadzki <blus... at jabberpl.org> wrote:
> Hello.
>
> As I saw in logging source - there is no lock per file during making emit()
> (only lock per thread).
>
> So, my question is - is it safe to log into one file using many processess
> uses logging logger?
>
> Cheers,
> --
> bluszczhttp://vegan-planet.net

Well, there a dummy response: there is no true thread in Python (I
mean CPython). So there is no problems in this case (cf global
interpreter lock or GIL).




More information about the Python-list mailing list