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 <[email protected]>
<http://bugs.python.org/issue26999>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com