Fayaz Yusuf Khan fayaz.yusuf.khan at 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
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
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
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 how it's not readable, code
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:
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)
On 24May2012 12:48, Jean-Michel Pichavant jeanmic...@sequans.com 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'))
|
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 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