[New-bugs-announce] [issue26061] logging LogRecordFactory allow kwargs

Aviv Palivoda report at bugs.python.org
Sat Jan 9 09:12:01 EST 2016


New submission from Aviv Palivoda:

The logging LogRecord factory receives kwargs. However because _log and makeRecord functions in the Logger class don't support kwargs we can't actually pass additional positional arguments to LogRecord.

A use case for this is attached.

I had made a patch to fix this by changing _log and makeRecord to accept kwargs and pass them.

----------
components: Library (Lib)
files: usecase.py
messages: 257831
nosy: palaviv, vinay.sajip
priority: normal
severity: normal
status: open
title: logging LogRecordFactory allow kwargs
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file41553/usecase.py

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


More information about the New-bugs-announce mailing list