10101111# Shengjing Zhu <[email protected] >, 20191212# Meng Du <[email protected] >, 202013- # Dai Xu <[email protected] >, 20211413# Freesand Leo <[email protected] >, 202114+ # Dai Xu <[email protected] >, 20211515#
1616#, fuzzy
1717msgid ""
@@ -20,7 +20,7 @@ msgstr ""
2020"Report-Msgid-Bugs-To : \n "
2121"POT-Creation-Date : 2021-07-26 07:02+0000\n "
2222"PO-Revision-Date : 2017-02-16 17:45+0000\n "
23- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
23+ "Last-Translator : Dai Xu <daixu61@hotmail .com>, 2021\n "
2424"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2525"MIME-Version : 1.0\n "
2626"Content-Type : text/plain; charset=UTF-8\n "
@@ -1411,10 +1411,12 @@ msgid ""
14111411"configuration, and see the other cookbook recipe :ref:`custom-handlers` "
14121412"above."
14131413msgstr ""
1414+ "与过滤器一样,上述技术还可用于配置自定义 handler 和格式化对象。有关如何在日志配置中使用用户自定义对象的更多信息,请参阅 :ref"
1415+ ":`logging-config-dict-userdef`,以及上述 :ref:`custom-handlers` 的其他指南。 "
14141416
14151417#: ../../howto/logging-cookbook.rst:2164
14161418msgid "Customized exception formatting"
1417- msgstr ""
1419+ msgstr "异常信息的自定义格式化 "
14181420
14191421#: ../../howto/logging-cookbook.rst:2166
14201422msgid ""
@@ -1423,10 +1425,11 @@ msgid ""
14231425"even when exception information is present. You can do this with a custom "
14241426"formatter class, as shown in the following example::"
14251427msgstr ""
1428+ "有时可能需要设置自定义的异常信息格式——考虑到会用到参数,假定要让每条日志事件只占一行,即便存在异常信息也一样。这可以用自定义格式化类来实现,如下所示:"
14261429
14271430#: ../../howto/logging-cookbook.rst:2207
14281431msgid "When run, this produces a file with exactly two lines:"
1429- msgstr ""
1432+ msgstr "运行后将会生成只有两行信息的文件: "
14301433
14311434#: ../../howto/logging-cookbook.rst:2214
14321435msgid ""
0 commit comments