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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26061>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to