Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 717234b

Browse files
[po] auto sync
1 parent c575c72 commit 717234b

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

library/logging.handlers.po

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,10 @@ msgid ""
16531653
"quickly as possible, while any potentially slow operations (such as sending "
16541654
"an email via :class:`SMTPHandler`) are done on a separate thread."
16551655
msgstr ""
1656+
"配合 :class:`QueueHandler` 类使用,:class:`QueueListener` "
1657+
"可用来使处理程序在与执行日志记录的线程不同的线程上完成工作。 这对 Web "
1658+
"应用程序以及其他服务与客户端的线程需要尽可能快地响应的服务应用程序来说很重要,任何潜在的慢速动作(例如通过 :class:`SMTPHandler` "
1659+
"发送邮件)都要在单独的线程上完成。"
16561660

16571661
#: ../../library/logging.handlers.rst:1056
16581662
msgid ""
@@ -1664,6 +1668,10 @@ msgid ""
16641668
"tracking API (though it's used if available), which means that you can use "
16651669
":class:`~queue.SimpleQueue` instances for *queue*."
16661670
msgstr ""
1671+
"返回一个 :class:`QueueListener` 类的新实例。 "
1672+
"该实例初始化时要传入一个队列以向其发送消息,还要传入一个处理程序列表用来处理放置在队列中的条目。 队列可以是任何队列类对象;它会被原样传给 "
1673+
":meth:`dequeue` 方法,该方法需要知道如何从其获取消息。 队列 *不要求* 具有任务跟踪 API(但如提供则会使用它),这意味着你可以为 "
1674+
"*queue* 使用 :class:`~queue.SimpleQueue` 实例。"
16671675

16681676
#: ../../library/logging.handlers.rst:1064
16691677
msgid ""
@@ -1672,24 +1680,27 @@ msgid ""
16721680
"messages to that handler; otherwise, the behaviour is as in previous Python "
16731681
"versions - to always pass each message to each handler."
16741682
msgstr ""
1683+
"如果 ``respect_handler_level`` 为 "
1684+
"``True``,则在决定是否将消息传递给处理程序之前会遵循处理程序的级别(与消息的级别进行比较);在其他情况下,其行为与之前的 Python 版本一致"
1685+
" —— 总是将每条消息传递给每个处理程序。"
16751686

16761687
#: ../../library/logging.handlers.rst:1069
16771688
msgid "The ``respect_handler_level`` argument was added."
1678-
msgstr ""
1689+
msgstr "增加了 ``respect_handler_level`` 参数。"
16791690

16801691
#: ../../library/logging.handlers.rst:1074
16811692
msgid "Dequeues a record and return it, optionally blocking."
1682-
msgstr ""
1693+
msgstr "从队列移出一条记录并将其返回,可以选择阻塞。"
16831694

16841695
#: ../../library/logging.handlers.rst:1076
16851696
msgid ""
16861697
"The base implementation uses ``get()``. You may want to override this method"
16871698
" if you want to use timeouts or work with custom queue implementations."
1688-
msgstr ""
1699+
msgstr "基本实现使用 ``get()``。 如果你想要使用超时设置或自定义的队列实现,则你可能会想要重载此方法。"
16891700

16901701
#: ../../library/logging.handlers.rst:1082
16911702
msgid "Prepare a record for handling."
1692-
msgstr ""
1703+
msgstr "准备一条要处理的记录。"
16931704

16941705
#: ../../library/logging.handlers.rst:1084
16951706
msgid ""

0 commit comments

Comments
 (0)