[issue26061] logging LogRecordFactory allow kwargs

2016-01-11 Thread Vinay Sajip
Vinay Sajip added the comment: That the LogRecord receives kwargs is an internal implementation detail - note that it is not mentioned in the documentation, and not even currently used there. If you want to pass additional information to be stored in the record, use the documented approach -

[issue26061] logging LogRecordFactory allow kwargs

2016-01-09 Thread Aviv Palivoda
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

[issue26061] logging LogRecordFactory allow kwargs

2016-01-09 Thread Aviv Palivoda
Aviv Palivoda added the comment: adding the patch :) -- keywords: +patch Added file: http://bugs.python.org/file41554/LogRecordFactoryKwargs.patch ___ Python tracker