logaware will treat extra as a regular keyword argument which eventually gets added as a key to the LogRecord.extra property. So you end up with a log record like:
record.extra["extra"] == {"foo": "bar"}
logaware does not use extra, but the standard library logger does. For better compatibility with the standard library, logware should merge extra with kwargs so it is not double-nested.
Example:
logaware will treat
extra
as a regular keyword argument which eventually gets added as a key to theLogRecord.extra
property. So you end up with a log record like:logaware does not use
extra
, but the standard library logger does. For better compatibility with the standard library, logware should mergeextra
withkwargs
so it is not double-nested.