Fayaz Yusuf Khan gmail.com> writes:
>
> ***TRIVIAL ISSUE***, but this has been irking me for a while now.
> The main logging.Handler class' __init__ accepts a level argument while none
> of its children do. The poor minions seem to be stuck with the setLevel
> method which considerably lengthe
On 24May2012 12:48, Jean-Michel Pichavant wrote:
| Peter Otten wrote:
| > Jean-Michel Pichavant wrote:
| >> Fayaz Yusuf Khan wrote:
| >>> Jean-Michel Pichavant wrote:
| Meanwhile you can shorten the code this way:
| root.addHandler(FileHandler('debug.log'))
| root.handlers[-1].setLe
Jean-Michel Pichavant wrote:
> Peter Otten wrote:
>> Jean-Michel Pichavant wrote:
>>
>>
>>> Fayaz Yusuf Khan wrote:
>>>
Jean-Michel Pichavant wrote:
> Meanwhile you can shorten the code this way:
>
> root.addHandler(FileHandler('debug.log'))
> root.
Peter Otten wrote:
Jean-Michel Pichavant wrote:
Fayaz Yusuf Khan wrote:
Jean-Michel Pichavant wrote:
Meanwhile you can shorten the code this way:
root.addHandler(FileHandler('debug.log'))
root.handlers[-1].setLevel(DEBUG)
Eh? Readability was the aim.
Jean-Michel Pichavant wrote:
> Fayaz Yusuf Khan wrote:
>> Jean-Michel Pichavant wrote:
>>
>>> Meanwhile you can shorten the code this way:
>>>
>>> root.addHandler(FileHandler('debug.log'))
>>> root.handlers[-1].setLevel(DEBUG)
>>>
>>>
>> Eh? Readability was the aim.
>>
> I fail to see h
Fayaz Yusuf Khan wrote:
Jean-Michel Pichavant wrote:
Meanwhile you can shorten the code this way:
root.addHandler(FileHandler('debug.log'))
root.handlers[-1].setLevel(DEBUG)
Eh? Readability was the aim.
I fail to see how it's not readable, code is short and no magic is
involved pr
Fayaz Yusuf Khan wrote:
> ***TRIVIAL ISSUE***, but this has been irking me for a while now.
> The main logging.Handler class' __init__ accepts a level argument while
> none of its children do. The poor minions seem to be stuck with the
> setLevel method which considerably lengthens the code.
>
>
Jean-Michel Pichavant wrote:
> Meanwhile you can shorten the code this way:
>
> root.addHandler(FileHandler('debug.log'))
> root.handlers[-1].setLevel(DEBUG)
>
Eh? Readability was the aim.
--
Fayaz Yusuf Khan
Cloud architect, Dexetra SS, India
fayaz.yusuf.khan_AT_gmail_DOT_com, fayaz_AT_dexetra_
Fayaz Yusuf Khan wrote:
***TRIVIAL ISSUE***, but this has been irking me for a while now.
The main logging.Handler class' __init__ accepts a level argument while none
of its children do. The poor minions seem to be stuck with the setLevel
method which considerably lengthens the code.
In short