@@ -1245,18 +1245,20 @@ msgid ""
12451245"able to access the registry to get the .dll name. The current version does "
12461246"not do this."
12471247msgstr ""
1248+ "这时,你就可以从注册表中移除作为事件日志条目来源的应用名称。 但是,如果你这样做,你将无法如你所预期的那样在事件日志查看器中看到这些事件 —— "
1249+ "它必须能访问注册表来获取 .dll 名称。 当前版本并不会这样做。"
12481250
12491251#: ../../library/logging.handlers.rst:754
12501252msgid ""
12511253"Determines the message ID, event category and event type, and then logs the "
12521254"message in the NT event log."
1253- msgstr ""
1255+ msgstr "确定消息 ID,事件类别和事件类型,然后将消息记录到 NT 事件日志中。 "
12541256
12551257#: ../../library/logging.handlers.rst:760
12561258msgid ""
12571259"Returns the event category for the record. Override this if you want to "
12581260"specify your own categories. This version returns 0."
1259- msgstr ""
1261+ msgstr "返回记录的事件类别。 如果你希望指定你自己的类别就要重载此方法。 此版本将返回 0。 "
12601262
12611263#: ../../library/logging.handlers.rst:766
12621264msgid ""
@@ -1268,6 +1270,10 @@ msgid ""
12681270"will either need to override this method or place a suitable dictionary in "
12691271"the handler's *typemap* attribute."
12701272msgstr ""
1273+ "返回记录的事件类型。 如果你希望指定你自己的类型就要重载此方法。 此版本将使用处理程序的 typemap 属性来执行映射,该属性在 "
1274+ ":meth:`__init__` 被设置为一个字典,其中包含 :const:`DEBUG`, :const:`INFO`, "
1275+ ":const:`WARNING`, :const:`ERROR` 和 :const:`CRITICAL` 的映射。 "
1276+ "如果你使用你自己的级别,你将需要重载此方法或者在处理程序的 *typemap* 属性中放置一个合适的字典。"
12711277
12721278#: ../../library/logging.handlers.rst:777
12731279msgid ""
@@ -1277,16 +1283,20 @@ msgid ""
12771283"lookup to get the message ID. This version returns 1, which is the base "
12781284"message ID in :file:`win32service.pyd`."
12791285msgstr ""
1286+ "返回记录的消息 ID。 如果你使用你自己的消息,你可以通过将 *msg* 传给日志记录器作为 ID 而非格式字符串实现此功能。 "
1287+ "然后,你可以在这里使用字典查找来获取消息 ID。 此版本将返回 1,是 :file:`win32service.pyd` 中的基本消息 ID."
12801288
12811289#: ../../library/logging.handlers.rst:786
12821290msgid "SMTPHandler"
1283- msgstr ""
1291+ msgstr "SMTPHandler "
12841292
12851293#: ../../library/logging.handlers.rst:788
12861294msgid ""
12871295"The :class:`SMTPHandler` class, located in the :mod:`logging.handlers` "
12881296"module, supports sending logging messages to an email address via SMTP."
12891297msgstr ""
1298+ ":class:`SMTPHandler` 类位于 :mod:`logging.handlers` 模块,它支持将日志记录消息通过 SMTP "
1299+ "发送到一个电子邮件地址。"
12901300
12911301#: ../../library/logging.handlers.rst:794
12921302msgid ""
0 commit comments