8899# Meng Du <[email protected] >, 20191010# MuSheng Chen <[email protected] >, 201911- # Freesand Leo <[email protected] >, 2019121112+ # Freesand Leo <[email protected] >, 20191313#
1414#, fuzzy
1515msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818"Report-Msgid-Bugs-To : \n "
1919"POT-Creation-Date : 2019-01-01 10:14+0900\n "
2020"PO-Revision-Date : 2017-02-16 17:45+0000\n "
21- "Last-Translator : 非法操作 <ultrahe@gmail .com>, 2019\n "
21+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2323"MIME-Version : 1.0\n "
2424"Content-Type : text/plain; charset=UTF-8\n "
@@ -394,8 +394,10 @@ msgid ""
394394":meth:`~LoggerAdapter.process` to do what you need. Here is a simple "
395395"example::"
396396msgstr ""
397- "使用'extra'的优点是这些键值对会被传入:class:`LogRecord`实例的__dict__中,让你使用:class:`Formatter`的实例时可以直接使用,因为它们能找到这些键。如果你需要一个其他的方法,比如说,想要在消息字符串前后增加上下文信息,你只需要创建一个:class:`LoggerAdapter`"
398- " 的子类,并覆盖它的方法:meth:`~LoggerAdapter.process` 来做你想做的事情,以下是一个简单的示例::"
397+ "使用 'extra' 的优点是这些键值对会被传入 :class:`LogRecord` 实例的 __dict__ 中,让你通过 "
398+ ":class:`Formatter` 的实例直接使用定制的字符串,实例能找到这个字典类对象的键。 "
399+ "如果你需要一个其他的方法,比如说,想要在消息字符串前后增加上下文信息,你只需要创建一个 :class:`LoggerAdapter` 的子类,并覆盖它的"
400+ " :meth:`~LoggerAdapter.process` 方法来做你想做的事情,以下是一个简单的示例::"
399401
400402#: ../../howto/logging-cookbook.rst:615
401403msgid "which you can use like this::"
@@ -434,8 +436,8 @@ msgid ""
434436"can then be output using a suitable format string, or if needed a custom "
435437":class:`Formatter`."
436438msgstr ""
437- "你也可以使用一个用户定义的类:class:`Filter`在日志输出中添加上下文信息。``Filter`` "
438- "的实例是被允许修改传入的 ``LogRecords``,包括添加其他的属性,然后可以使用合适的格式化字符串输出,或者可以使用一个自定义的类:class:`Formatter`。"
439+ "你也可以使用一个用户定义的类 :class:`Filter` 在日志输出中添加上下文信息。``Filter`` 的实例是被允许修改传入的 "
440+ "``LogRecords``,包括添加其他的属性,然后可以使用合适的格式化字符串输出,或者可以使用一个自定义的类 :class:`Formatter`。"
439441
440442#: ../../howto/logging-cookbook.rst:642
441443msgid ""
0 commit comments