Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21276

Re: Help me with weird logging problem

References <mailman.430.1331050187.3037.python-list@python.org> <c9633d71-4156-405d-9aa5-4e692b973f9c@gi10g2000vbb.googlegroups.com>
From J <dreadpiratejeff@gmail.com>
Date 2012-03-06 12:03 -0500
Subject Re: Help me with weird logging problem
Newsgroups comp.lang.python
Message-ID <mailman.434.1331053419.3037.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Mar 6, 2012 at 11:19, Vinay Sajip <vinay_sajip@yahoo.co.uk> wrote:
> On Mar 6, 4:09 pm, J <dreadpiratej...@gmail.com> wrote:
>>
>> Any idea what I'm doing wrong?
>
> Levels can be set on loggers as well as handlers, and you're only
> setting levels on the handlers. The default level on the root logger
> is WARNING. A logger checks its level first, and only if the event
> passes that test will it be passed to the handlers (which will also
> perform level tests).
>
> So, a logger.setLevel(logging.DEBUG) should be all you need to add
> before logging anything.
>
> Regards,
>
> Vinay Sajip
> --
> http://mail.python.org/mailman/listinfo/python-list

Thank you very much, Vinay :)

I thought it was something simple like that I had overlooked or misunderstood.

Cheers,

Jeff

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Help me with weird logging problem J <dreadpiratejeff@gmail.com> - 2012-03-06 11:09 -0500
  Re: Help me with weird logging problem Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2012-03-06 08:19 -0800
    Re: Help me with weird logging problem J <dreadpiratejeff@gmail.com> - 2012-03-06 12:03 -0500

csiph-web