@@ -69,7 +69,7 @@ msgid ""
6969"application log can include your own messages integrated with messages from "
7070"third-party modules."
7171msgstr ""
72- "使用标准库提提供的 logging API 最主要的好处是,所有的 Python 模块都可能参与日志输出,包括你自己的日志消息和第三方模块的日志消息。"
72+ "使用标准库提供的 logging API 最主要的好处是,所有的 Python 模块都可能参与日志输出,包括你自己的日志消息和第三方模块的日志消息。"
7373
7474#: ../../library/logging.rst:33
7575msgid ""
@@ -98,7 +98,7 @@ msgstr "处理器将日志记录(由记录器创建)发送到适当的目标
9898msgid ""
9999"Filters provide a finer grained facility for determining which log records "
100100"to output."
101- msgstr "过滤器提供了更精细的设施 ,用于确定要输出的日志记录。"
101+ msgstr "过滤器提供了更细粒度的功能 ,用于确定要输出的日志记录。"
102102
103103#: ../../library/logging.rst:45
104104msgid "Formatters specify the layout of log records in the final output."
@@ -264,8 +264,8 @@ msgid ""
264264"when the parent logger is named using e.g. ``__name__`` rather than a "
265265"literal string."
266266msgstr ""
267- "返回由后缀确定的,是该记录器的后代的记录器 。 因此,``logging.getLogger('abc').getChild('def.ghi')`` 与"
268- " ``logging.getLogger('abc.def.ghi')`` 将返回相同的记录器。 这是一个便捷方法,当使用如 ``__name__`` "
267+ "返回由后缀确定的该记录器的后代记录器 。 因此,``logging.getLogger('abc').getChild('def.ghi')`` 与 "
268+ "``logging.getLogger('abc.def.ghi')`` 将返回相同的记录器。 这是一个便捷方法,当使用如 ``__name__`` "
269269"而不是字符串字面值命名父记录器时很有用。"
270270
271271#: ../../library/logging.rst:158
@@ -366,8 +366,7 @@ msgid ""
366366"used by the logging system. (See the :class:`Formatter` documentation for "
367367"more information on which keys are used by the logging system.)"
368368msgstr ""
369- " *extra* 中传入的字典的键不应与日志系统使用的键冲突。(有关日志系统使用哪些键的更多信息,请参见 :class:`Formatter` "
370- "的文档。)"
369+ "*extra* 中传入的字典的键不应与日志系统使用的键冲突。(有关日志系统使用哪些键的更多信息,请参见 :class:`Formatter` 的文档。)"
371370
372371#: ../../library/logging.rst:222
373372msgid ""
@@ -379,7 +378,7 @@ msgid ""
379378"formatting exception will occur. So in this case, you always need to pass "
380379"the *extra* dictionary with these keys."
381380msgstr ""
382- "格式字符串如果在已记录的消息中使用这些属性 ,则需要格外小心。例如,在上面的示例中,:class:`Formatter` 已设置了格式字符串,其在 "
381+ "如果在已记录的消息中使用这些属性 ,则需要格外小心。例如,在上面的示例中,:class:`Formatter` 已设置了格式字符串,其在 "
383382":class:`LogRecord` 的属性字典中键值为 “clientip” 和 "
384383"“user”。如果缺少这些内容,则将不会记录该消息,因为会引发字符串格式化异常。因此,在这种情况下,您始终需要使用 *extra* 字典传递这些键。"
385384
@@ -402,7 +401,7 @@ msgstr "增加了 *stack_info* 参数。"
402401
403402#: ../../library/logging.rst:239
404403msgid "The *exc_info* parameter can now accept exception instances."
405- msgstr " *exc_info* 参数现在可以接受异常实例。"
404+ msgstr "*exc_info* 参数现在可以接受异常实例。"
406405
407406#: ../../library/logging.rst:242
408407msgid "The *stacklevel* parameter was added."
@@ -551,8 +550,7 @@ msgid ""
551550"define a level with the same numeric value, it overwrites the predefined "
552551"value; the predefined name is lost."
553552msgstr ""
554- "日志记录级别的数值在下表中给出。如果你想要定义自己的级别,并且需要它们具有相对于预定义级别的特定值,那么这些内容可能是你感兴趣的。如果你定义具有相同数值的级别,它将覆盖预定义的值;"
555- " 预定义的名称将失效。"
553+ "日志记录级别的数值在下表中给出。如果你想要定义自己的级别,并且需要它们具有相对于预定义级别的特定值,那么这你可能对以下内容感兴趣。如果你定义具有相同数值的级别,它将覆盖预定义的值;预定义的名称将失效。"
556554
557555#: ../../library/logging.rst:368
558556msgid "Level"
@@ -895,9 +893,9 @@ msgid ""
895893"(for the strptime format string) and ``default_msec_format`` (for appending "
896894"the millisecond value)."
897895msgstr ""
898- "在之前版本中,默认格式为写死的代码 ,例如这个例子: ``2010-09-06 22:38:15,292`` 其中逗号之前的部分由 strptime "
896+ "在之前版本中,默认格式是被硬编码的 ,例如这个例子: ``2010-09-06 22:38:15,292`` 其中逗号之前的部分由 strptime "
899897"格式字符串 (``'%Y-%m-%d %H:%M:%S'``) 处理,而逗号之后的部分为毫秒值。 因为 strptime "
900- "没有表示毫秒的占位符,毫秒值使用了另外的格式字符串来添加 ``'%s,%03d'`` --- 这两个格式字符串代码都是写死在该方法中的 。 "
898+ "没有表示毫秒的占位符,毫秒值使用了另外的格式字符串来添加 ``'%s,%03d'`` --- 这两个格式字符串代码都是硬编码在该方法中的 。 "
901899"经过修改,这些字符串被定义为类层级的属性,当需要时可以在实例层级上被重载。 属性的名称为 ``default_time_format`` (用于 "
902900"strptime 格式字符串) 和 ``default_msec_format`` (用于添加毫秒值)。"
903901
@@ -912,7 +910,7 @@ msgid ""
912910"just uses :func:`traceback.print_exception`. The resulting string is "
913911"returned."
914912msgstr ""
915- "将指定的异常信息(由 :func:`sys.exc_info` 返回的标准异常元组)格式化为字符串。 这个默认实现只使用了 "
913+ "将指定的异常信息(由 :func:`sys.exc_info` 返回的标准异常元组)格式化为字符串。默认实现只是使用了 "
916914":func:`traceback.print_exception`。 结果字符串将被返回。"
917915
918916#: ../../library/logging.rst:623
@@ -922,7 +920,7 @@ msgid ""
922920"string. This default implementation just returns the input value."
923921msgstr ""
924922"将指定的堆栈信息(由 :func:`traceback.print_stack` 返回的字符串,但移除末尾的换行符)格式化为字符串。 "
925- "这个默认实现只是返回输入值 。"
923+ "默认实现只是返回输入值 。"
926924
927925#: ../../library/logging.rst:630
928926msgid "Filter Objects"
0 commit comments