Wish: Allow all log Handlers to accept the level argument

Fayaz Yusuf Khan fayaz.yusuf.khan at gmail.com
Thu May 24 01:24:51 EDT 2012


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_DOT_com
+91-9746-830-823





More information about the Python-list mailing list