[New-bugs-announce] [issue26999] Add child seperator keyword to logging.basicConfig and use it in Logger.getChild()

Richard Neumann report at bugs.python.org
Wed May 11 09:11:07 EDT 2016


New submission from Richard Neumann:

Currently Python's logging library has the Child-Separator hard-coded in Logger.getChild() as '.'.
It would be useful to have the ability to preset this via an optional basicConfig() argument like 'child_sep=' and preset it to '.' to retain the current behaviour.
In my case I will need to monkey-patch the getChild() method to use a different separator ('->') because I use '.' for different purposes within the loggers' names.
The current behaviour would lead to ugly and mistakable output.

----------
components: Library (Lib)
messages: 265312
nosy: Richard Neumann
priority: normal
severity: normal
status: open
title: Add child seperator keyword to logging.basicConfig and use it in Logger.getChild()
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26999>
_______________________________________


More information about the New-bugs-announce mailing list