New submission from anatoly techtonik <techto...@gmail.com>:

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14760>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to