[issue33057] logging.Manager.logRecordFactory is never used
Ben Feinstein
report at bugs.python.org
Fri Mar 16 07:10:26 EDT 2018
Ben Feinstein <feinsteinben at gmail.com> added the comment:
General loggers are used in the standard way (message, args, etc), but data
loggers are used for different types of data. Instead of message, they
receive the experiment results (dict/list/np.array/binary data) and their
`formatMessage()` method should be modified in order to account for the
changed data-type.
This might indeed be an XY problem on my side. However, it seems that
someone already thought about it before and started implementing this
mechanism (`Manager.setLogRecordFactory()`), but didn't finish. That's why
I suggested this modification.
On Thu, Mar 15, 2018 at 4:21 PM Vinay Sajip <report at bugs.python.org> wrote:
>
> Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
>
> > I have two types of loggers, one for experiment results ("data") and
> another for general information
>
> In what way is the behaviour of the two types of logger different? I'm
> concerned that this might be an XY problem ...
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue33057>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33057>
_______________________________________
More information about the Python-bugs-list
mailing list