What's wrong with my logging configuration

rambius rambiusparkisanius at gmail.com
Sat Nov 27 17:25:32 EST 2010


Hello Ben,

On what environment did you try it?

On Nov 27, 5:09 pm, Ben Finney <ben+pyt... at benfinney.id.au> wrote:
> rambius <rambiusparkisan... at gmail.com> writes:
> > When I run this program the logger statement after 'import optparse'
> > does not appear. The first logger statement before optparse does
> > appear. Has anyone experienced similar behaviour?
>
> I use the same config file (from your first message) and your shorter
> program, and I see this output:
>
> =====
> test        : CRITICAL test1
> test        : CRITICAL test2
> =====
>

This is so strange. If I import optparse outside of main() it works.
If I import it between the two logging statement, the second one does
not appear.

Regards
Rambius



More information about the Python-list mailing list