Re: Multiprocessing & Logging

2012-04-08 Thread Thibaut
Le 08/04/2012 02:56, Vinay Sajip a écrit : Thibaut gmail.com> writes: This is exactly what I wanted, it seems perfect. However I still have a question, from what I understood, I have to configure logging AFTER creating the process, to avoid children process to inherits the logging config. Un

Re: Multiprocessing & Logging

2012-04-07 Thread Vinay Sajip
Thibaut gmail.com> writes: > This is exactly what I wanted, it seems perfect. However I still have a > question, from what I understood, > I have to configure logging AFTER creating the process, to avoid > children process to inherits the logging config. > > Unless there is a way to "clean" lo

Re: Multiprocessing & Logging

2012-04-07 Thread Vinay Sajip
Thibaut gmail.com> writes: > This is exactly what I wanted, it seems perfect. However I still have a > question, from what I understood, > I have to configure logging AFTER creating the process, to avoid > children process to inherits the logging config. > > Unless there is a way to "clean" lo

Re: Multiprocessing & Logging

2012-04-07 Thread Thibaut
Le 07/04/2012 16:47, Vinay Sajip a écrit : Thibaut gmail.com> writes: Ok, I understand what happenned. In fact, configuring the logging before forking works fine. Subprocess inherits the configuration, as I thought. The problem was that I didn't passed any handler to the QueueListener constr

Re: Multiprocessing & Logging

2012-04-07 Thread Vinay Sajip
Thibaut gmail.com> writes: > Ok, I understand what happenned. In fact, configuring the logging before > forking works fine. Subprocess inherits the configuration, as I thought. > > The problem was that I didn't passed any handler to the QueueListener > constructor. The when the listener reciev

Re: Multiprocessing & Logging

2012-04-07 Thread Thibaut
Le 07/04/2012 11:22, Thibaut DIRLIK a écrit : Hi, I'm currently writing a multiprocess applications with Python 3.2 and multiprocessing module. My subprocesses will use a QueueHandler to log messages (by sending them to the main process, which uses a QueueListener). However, if logging is alr