New submission from anatoly techtonik <[email protected]>:
It would be convenient if instead of:
hdlr = logging.StreamHandler()
hglr.setLevel(logging.DEBUG)
root.addHandler(hdlr)
it would be possible to write:
root.addHandler(logging.StreamHandler().setLevel(logging.DEBUG))
----------
components: Library (Lib)
messages: 160252
nosy: techtonik
priority: normal
severity: normal
status: open
title: logging: make setLevel() return handler itself for chained configuration
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14760>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com