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

Skip to content

Commit 9619778

Browse files
[po] auto sync
1 parent 88c18a6 commit 9619778

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

library/logging.handlers.po

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,10 +1464,16 @@ msgid ""
14641464
"credentials, you should also specify secure=True so that your userid and "
14651465
"password are not passed in cleartext across the wire."
14661466
msgstr ""
1467+
"返回一个 :class:`HTTPHandler` 类的新实例。 *host* 可以为 ``host:port`` "
1468+
"的形式,如果你需要使用指定端口号的话。 如果没有指定 *method*,则会使用 ``GET``。 如果 *secure* 为真值,则将使用 HTTPS"
1469+
" 连接。 *context* 形参可以设为一个 :class:`ssl.SSLContext` 实例以配置用于 HTTPS 连接的 SSL 设置。 "
1470+
"如果指定了 *credentials*,它应当为包含 userid 和 password 的二元组,该元组将被放入使用 Basic 验证的 HTTP "
1471+
"'Authorization' 标头中。 如果你指定了 credentials,你还应当指定 secure=True 这样你的 userid 和 "
1472+
"password 就不会以纯文本形式在线路上传输。"
14671473

14681474
#: ../../library/logging.handlers.rst:926
14691475
msgid "The *context* parameter was added."
1470-
msgstr ""
1476+
msgstr "增加了 *context* 形参。"
14711477

14721478
#: ../../library/logging.handlers.rst:931
14731479
msgid ""
@@ -1477,13 +1483,16 @@ msgid ""
14771483
":class:`~logging.LogRecord` is to be sent to the web server, or if more "
14781484
"specific customization of what's sent to the server is required."
14791485
msgstr ""
1486+
"基于 ``record`` 提供一个字典,它将被执行 URL 编码并发送至 Web 服务器。 默认实现仅返回 ``record.__dict__``。 "
1487+
"在只需将 :class:`~logging.LogRecord` 的某个子集发送至 Web "
1488+
"服务器,或者需要对发送至服务器的内容进行更多定制时可以重载此方法。"
14801489

14811490
#: ../../library/logging.handlers.rst:939
14821491
msgid ""
14831492
"Sends the record to the Web server as a URL-encoded dictionary. The "
14841493
":meth:`mapLogRecord` method is used to convert the record to the dictionary "
14851494
"to be sent."
1486-
msgstr ""
1495+
msgstr "将记录以经 URL 编码的形式发送至 Web 服务器。 会使用 :meth:`mapLogRecord` 方法来将要发送的记录转换为字典。"
14871496

14881497
#: ../../library/logging.handlers.rst:943
14891498
msgid ""
@@ -1494,17 +1503,23 @@ msgid ""
14941503
"calls :meth:`mapLogRecord` and then :func:`urllib.parse.urlencode` to encode"
14951504
" the dictionary in a form suitable for sending to a Web server."
14961505
msgstr ""
1506+
"由于记录发送至 Web 服务器所需的预处理与通用的格式化操作不同,使用 :meth:`~logging.Handler.setFormatter` "
1507+
"来指定一个 :class:`~logging.Formatter` 用于 :class:`HTTPHandler` 是没有效果的。 此处理程序不会调用 "
1508+
":meth:`~logging.Handler.format`,而是调用 :meth:`mapLogRecord` 然后再调用 "
1509+
":func:`urllib.parse.urlencode` 来以适合发送至 Web 服务器的形式对字典进行编码。"
14971510

14981511
#: ../../library/logging.handlers.rst:956
14991512
msgid "QueueHandler"
1500-
msgstr ""
1513+
msgstr "QueueHandler"
15011514

15021515
#: ../../library/logging.handlers.rst:960
15031516
msgid ""
15041517
"The :class:`QueueHandler` class, located in the :mod:`logging.handlers` "
15051518
"module, supports sending logging messages to a queue, such as those "
15061519
"implemented in the :mod:`queue` or :mod:`multiprocessing` modules."
15071520
msgstr ""
1521+
":class:`QueueHandler` 类位于 :mod:`logging.handlers` 模块,它支持将日志记录消息发送到一个队列,例如在 "
1522+
":mod:`queue` 或 :mod:`multiprocessing` 模块中实现的队列。"
15081523

15091524
#: ../../library/logging.handlers.rst:964
15101525
msgid ""

0 commit comments

Comments
 (0)