@@ -1659,39 +1659,43 @@ msgstr "在根日志记录器上记录一条 :const:`INFO` 级别的消息。
16591659msgid ""
16601660"Logs a message with level :const:`WARNING` on the root logger. The arguments"
16611661" are interpreted as for :func:`debug`."
1662- msgstr ""
1662+ msgstr "在根日志记录器上记录一条 :const:`WARNING` 级别的消息。 参数解释同 :func:`debug`。 "
16631663
16641664#: ../../library/logging.rst:1029
16651665msgid ""
16661666"There is an obsolete function ``warn`` which is functionally identical to "
16671667"``warning``. As ``warn`` is deprecated, please do not use it - use "
16681668"``warning`` instead."
16691669msgstr ""
1670+ "有一个已过时方法 ``warn`` 其功能与 ``warning`` 一致。 由于 ``warn`` 已被弃用,请不要使用它 —— 而要改用 "
1671+ "``warning``。"
16701672
16711673#: ../../library/logging.rst:1036
16721674msgid ""
16731675"Logs a message with level :const:`ERROR` on the root logger. The arguments "
16741676"are interpreted as for :func:`debug`."
1675- msgstr ""
1677+ msgstr "在根日志记录器上记录一条 :const:`ERROR` 级别的消息。 参数解释同 :func:`debug`. "
16761678
16771679#: ../../library/logging.rst:1042
16781680msgid ""
16791681"Logs a message with level :const:`CRITICAL` on the root logger. The "
16801682"arguments are interpreted as for :func:`debug`."
1681- msgstr ""
1683+ msgstr "在根日志记录器上记录一条 :const:`CRITICAL` 级别的消息。 参数解释同 :func:`debug`。 "
16821684
16831685#: ../../library/logging.rst:1048
16841686msgid ""
16851687"Logs a message with level :const:`ERROR` on the root logger. The arguments "
16861688"are interpreted as for :func:`debug`. Exception info is added to the logging"
16871689" message. This function should only be called from an exception handler."
16881690msgstr ""
1691+ "在根日志记录器上记录一条 :const:`ERROR` 级别的消息。 参数解释同 :func:`debug`。 异常信息将被添加到日志消息中。 "
1692+ "此函数应当仅从异常处理程序中调用。"
16891693
16901694#: ../../library/logging.rst:1054
16911695msgid ""
16921696"Logs a message with level *level* on the root logger. The other arguments "
16931697"are interpreted as for :func:`debug`."
1694- msgstr ""
1698+ msgstr "在根日志记录器上记录一条 *level* 级别的消息。 其他参数解释同 :func:`debug`。 "
16951699
16961700#: ../../library/logging.rst:1057
16971701msgid ""
@@ -1705,6 +1709,10 @@ msgid ""
17051709"being added multiple times to the root logger, which can in turn lead to "
17061710"multiple messages for the same event."
17071711msgstr ""
1712+ "上述模块层级的便捷函数均委托给根日志记录器,它们会调用 :func:`basicConfig` 以确保至少有一个处理程序可用。 因此,它们 *不应* "
1713+ "在线程中使用,在 Python 2.7.1 和 3.2 之前的版本中,除非线程启动 *之前* 已向根日志记录器添加了至少一个处理程序方可使用。 在较早的"
1714+ " Python 版本中,由于 :func:`basicConfig` "
1715+ "中存在线程安全性的不足,这(在少数情况下)可能导致处理程序被多次加入根日志记录器,这会进一步导致同一事件出现多条消息。"
17081716
17091717#: ../../library/logging.rst:1069
17101718msgid ""
@@ -1719,6 +1727,11 @@ msgid ""
17191727"overriding level, so that logging output again depends on the effective "
17201728"levels of individual loggers."
17211729msgstr ""
1730+ "为所有日志记录器提供重载的级别 *level*,其优先级高于日志记录器自己的级别。 当需要临时限制整个应用程序中的日志记录输出时,此功能会很有用。 "
1731+ "它的效果是禁用所有重要程度为 *level* 及以下的日志记录调用,因此如果你附带 INFO 值调用它,则所有 INFO 和 DEBUG "
1732+ "事件就会被丢弃,而重要程度为 WARNING 以及上的事件将根据日志记录器的当前有效级别来处理。 如果 "
1733+ "``logging.disable(logging.NOTSET)`` "
1734+ "被调用,它将在实际上移除这个重载的级别,因此日志记录输出会再次取决于单个日志记录器的有效级别。"
17221735
17231736#: ../../library/logging.rst:1080
17241737msgid ""
0 commit comments