Ben Feinstein <feinstein...@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 <rep...@bugs.python.org> wrote: > > Vinay Sajip <vinay_sa...@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 <rep...@bugs.python.org> > <https://bugs.python.org/issue33057> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33057> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com