Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 375fa9d commit 650b7c7Copy full SHA for 650b7c7
2 files changed
howto/logging-cookbook.po
@@ -387,9 +387,8 @@ msgid ""
387
"had passed an 'extra' keyword argument in the call to the adapter, it will "
388
"be silently overwritten."
389
msgstr ""
390
-":class:`LoggerAdapter` 的 :meth:`~LoggerAdapter.process` 方法是将上下文信息添加到日志的输出中。 "
391
-"它传入日志消息和日志调用的关键字参数,并传回(隐式的)这些修改后的内容去调用底层的日志记录器。此方法的默认参数只是一个消息字段,但留有一个 "
392
-"'extra' 的字段作为关键字参数传给构造器。当然,如果你在调用适配器时传入了一个 'extra' 字段的参数,它会被静默覆盖。"
+":class:`LoggerAdapter` 的 :meth:`~LoggerAdapter.process` "
+"方法用于将上下文信息添加到日志的输出中去。其入参为日志调用的信息和关键字参数,并将(可能)修改后的入参值传回,以供底层的日志对象调用。该方法的默认实现代码不会对信息做改动,而只是在关键字参数中增加一个键为“extra”的字段,其值即为传入构造函数的字典类对象。当然,若是在调用时传入了一个名为“extra”的关键字参数,则传入值会被悄无声息地覆盖掉。"
393
394
#: ../../howto/logging-cookbook.rst:599
395
msgid ""
0 commit comments