@@ -251,8 +251,8 @@ msgid ""
251251"handler classes, which would eat up one thread per handler for no particular"
252252" benefit."
253253msgstr ""
254- "使用一个单独的类 :class:`QueueListener` "
255- "优点是可以使用同一个实例去服务于多个``QueueHandlers``。这样会更节省资源,否则每个处理程序都占用一个线程没有任何益处。"
254+ "使用一个单独的类 "
255+ ":class:`QueueListener` 优点是可以使用同一个实例去服务于多个``QueueHandlers``。这样会更节省资源,否则每个处理程序都占用一个线程没有任何益处。"
256256
257257#: ../../howto/logging-cookbook.rst:370
258258msgid "An example of using these two classes follows (imports omitted)::"
@@ -273,8 +273,9 @@ msgid ""
273273"of each message with the handler's level, and only passes a message to a "
274274"handler if it's appropriate to do so."
275275msgstr ""
276- "在Python 3.5之前,:class:`QueueListener` "
277- "总是把从队列中接收的每个消息都传给它初始化的日志处理程序。(这是因为它会假设过滤级别总是在队列的另一侧去设置的。) 从Python "
276+ "在Python "
277+ "3.5之前,:class:`QueueListener` 总是把从队列中接收的每个消息都传给它初始化的日志处理程序。(这是因为它会假设过滤级别总是在队列的另一侧去设置的。)"
278+ " 从Python "
278279"3.5开始,可以通过在监听器构造函数中添加一个参数``respect_handler_level=True``改变这种情况。当这样设置时,监听器会比较每条消息的等级和日志处理器中设置的等级,只把需要传递的消息传给对应的日志处理器。"
279280
280281#: ../../howto/logging-cookbook.rst:407
@@ -1293,9 +1294,9 @@ msgstr "自定义信息对象的使用"
12931294#: ../../howto/logging-cookbook.rst:2014
12941295msgid ""
12951296"There is another, perhaps simpler way that you can use {}- and $- formatting"
1296- " to construct your individual log messages. You may recall (from :ref "
1297- ":`arbitrary-object-messages`) that when logging you can use an arbitrary "
1298- "object as a message format string, and that the logging package will call "
1297+ " to construct your individual log messages. You may recall (from "
1298+ ":ref: `arbitrary-object-messages`) that when logging you can use an arbitrary"
1299+ " object as a message format string, and that the logging package will call "
12991300":func:`str` on that object to get the actual format string. Consider the "
13001301"following two classes::"
13011302msgstr ""
@@ -1402,8 +1403,8 @@ msgid ""
14021403"configuration, and see the other cookbook recipe :ref:`custom-handlers` "
14031404"above."
14041405msgstr ""
1405- "与过滤器一样,上述技术还可用于配置自定义 handler 和格式化对象。有关如何在日志配置中使用用户自定义对象的更多信息,请参阅 :ref "
1406- ":`logging-config-dict-userdef`,以及上述 :ref:`custom-handlers` 的其他指南。 "
1406+ "与过滤器一样,上述技术还可用于配置自定义 handler 和格式化对象。有关如何在日志配置中使用用户自定义对象的更多信息,请参阅 "
1407+ ":ref: `logging-config-dict-userdef`,以及上述 :ref:`custom-handlers` 的其他指南。 "
14071408
14081409#: ../../howto/logging-cookbook.rst:2165
14091410msgid "Customized exception formatting"
0 commit comments