11111212# Shengjing Zhu <[email protected] >, 20191313# Meng Du <[email protected] >, 202014- # Dai Xu <[email protected] >, 20211514# Freesand Leo <[email protected] >, 202115+ # Dai Xu <[email protected] >, 20211616#
1717#, fuzzy
1818msgid ""
@@ -21,7 +21,7 @@ msgstr ""
2121"Report-Msgid-Bugs-To : \n "
2222"POT-Creation-Date : 2021-01-01 16:02+0000\n "
2323"PO-Revision-Date : 2019-09-01 03:37+0000\n "
24- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
24+ "Last-Translator : Dai Xu <daixu61@hotmail .com>, 2021\n "
2525"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2626"MIME-Version : 1.0\n "
2727"Content-Type : text/plain; charset=UTF-8\n "
@@ -1402,10 +1402,12 @@ msgid ""
14021402"configuration, and see the other cookbook recipe :ref:`custom-handlers` "
14031403"above."
14041404msgstr ""
1405+ "与过滤器一样,上述技术还可用于配置自定义 handler 和格式化对象。有关如何在日志配置中使用用户自定义对象的更多信息,请参阅 :ref"
1406+ ":`logging-config-dict-userdef`,以及上述 :ref:`custom-handlers` 的其他指南。 "
14051407
14061408#: ../../howto/logging-cookbook.rst:2165
14071409msgid "Customized exception formatting"
1408- msgstr ""
1410+ msgstr "异常信息的自定义格式化 "
14091411
14101412#: ../../howto/logging-cookbook.rst:2167
14111413msgid ""
@@ -1414,10 +1416,11 @@ msgid ""
14141416"even when exception information is present. You can do this with a custom "
14151417"formatter class, as shown in the following example::"
14161418msgstr ""
1419+ "有时可能需要设置自定义的异常信息格式——考虑到会用到参数,假定要让每条日志事件只占一行,即便存在异常信息也一样。这可以用自定义格式化类来实现,如下所示:"
14171420
14181421#: ../../howto/logging-cookbook.rst:2208
14191422msgid "When run, this produces a file with exactly two lines:"
1420- msgstr ""
1423+ msgstr "运行后将会生成只有两行信息的文件: "
14211424
14221425#: ../../howto/logging-cookbook.rst:2215
14231426msgid ""
0 commit comments