@@ -1801,6 +1801,8 @@ msgid ""
18011801"This undocumented behaviour was considered a mistake, and was removed in "
18021802"Python 3.4, but reinstated in 3.4.2 due to retain backward compatibility."
18031803msgstr ""
1804+ "在早于 3.4 的 Python 版本中,此函数也可传入一个文本级别名称,并将返回对应的级别数字值。 此未记入文档的行为被视为是一个错误,并在 "
1805+ "Python 3.4 中被移除,但又在 3.4.2 中被恢复以保持向下兼容性。"
18041806
18051807#: ../../library/logging.rst:1124
18061808msgid ""
@@ -1809,6 +1811,8 @@ msgid ""
18091811":class:`LogRecord` attribute dictionary, sent over a socket, and "
18101812"reconstituting it as a :class:`LogRecord` instance at the receiving end."
18111813msgstr ""
1814+ "创建并返回一个新的 :class:`LogRecord` 实例,实例属性由 *attrdict* 定义。 此函数适用于接受一个封存的 "
1815+ ":class:`LogRecord` 属性字典,通过套接字传输,并在接收端将其重建为一个 :class:`LogRecord` 实例。"
18121816
18131817#: ../../library/logging.rst:1132
18141818msgid ""
@@ -1818,12 +1822,16 @@ msgid ""
18181822" :func:`error` and :func:`critical` will call :func:`basicConfig` "
18191823"automatically if no handlers are defined for the root logger."
18201824msgstr ""
1825+ "通过使用默认的 :class:`Formatter` 创建一个 :class:`StreamHandler` "
1826+ "并将其加入根日志记录器来为日志记录系统执行基本配置。 如果没有为根日志记录器定义处理程序则 :func:`debug`, :func:`info`, "
1827+ ":func:`warning`, :func:`error` 和 :func:`critical` 等函数将自动调用 "
1828+ ":func:`basicConfig`。"
18211829
18221830#: ../../library/logging.rst:1138
18231831msgid ""
18241832"This function does nothing if the root logger already has handlers "
18251833"configured, unless the keyword argument *force* is set to ``True``."
1826- msgstr ""
1834+ msgstr "如果根日志记录器已配置了处理程序则此函数将不执行任何操作,除非关键字参数 *force* 被设为 ``True``。 "
18271835
18281836#: ../../library/logging.rst:1141
18291837msgid ""
0 commit comments