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

Skip to content

Commit 33c61cc

Browse files
[po] auto sync
1 parent b5911b9 commit 33c61cc

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

howto/logging-cookbook.po

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,30 +1099,33 @@ msgid ""
10991099
"following is a simple approach which uses JSON to serialise the event in a "
11001100
"machine-parseable manner::"
11011101
msgstr ""
1102+
"大多数日志信息是供人阅读的,所以机器解析起来并不容易,但某些时候可能希望以结构化的格式输出,以 *能够* "
1103+
"被程序解析(无需用到复杂的正则表达式)。这可以直接用 logging 包实现。实现方式有很多,以下是一种比较简单的方案,利用 JSON "
1104+
"以机器可解析的方式对事件信息进行序列化:"
11021105

11031106
#: ../../howto/logging-cookbook.rst:1757
11041107
msgid "If the above script is run, it prints:"
1105-
msgstr ""
1108+
msgstr "上述代码运行后的结果是:"
11061109

11071110
#: ../../howto/logging-cookbook.rst:1763 ../../howto/logging-cookbook.rst:1812
11081111
msgid ""
11091112
"Note that the order of items might be different according to the version of "
11101113
"Python used."
1111-
msgstr ""
1114+
msgstr "请注意,根据 Python 版本的不同,各项数据的输出顺序可能会不一样。"
11121115

11131116
#: ../../howto/logging-cookbook.rst:1766
11141117
msgid ""
11151118
"If you need more specialised processing, you can use a custom JSON encoder, "
11161119
"as in the following complete example::"
1117-
msgstr ""
1120+
msgstr "若需进行更为定制化的处理,可以使用自定义 JSON 编码对象,下面给出完整示例: "
11181121

11191122
#: ../../howto/logging-cookbook.rst:1806
11201123
msgid "When the above script is run, it prints:"
1121-
msgstr ""
1124+
msgstr "上述代码运行后的结果是:"
11221125

11231126
#: ../../howto/logging-cookbook.rst:1821
11241127
msgid "Customizing handlers with :func:`dictConfig`"
1125-
msgstr ""
1128+
msgstr "利用 :func:`dictConfig` 自定义 handler"
11261129

11271130
#: ../../howto/logging-cookbook.rst:1823
11281131
msgid ""

0 commit comments

Comments
 (0)