File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1425,17 +1425,18 @@ msgid ""
14251425"even when exception information is present. You can do this with a custom "
14261426"formatter class, as shown in the following example::"
14271427msgstr ""
1428+ "有时可能需要设置自定义的异常信息格式——考虑到会用到参数,假定要让每条日志事件只占一行,即便存在异常信息也一样。这可以用自定义格式化类来实现,如下所示:"
14281429
14291430#: ../../howto/logging-cookbook.rst:2207
14301431msgid "When run, this produces a file with exactly two lines:"
1431- msgstr ""
1432+ msgstr "运行后将会生成只有两行信息的文件: "
14321433
14331434#: ../../howto/logging-cookbook.rst:2214
14341435msgid ""
14351436"While the above treatment is simplistic, it points the way to how exception "
14361437"information can be formatted to your liking. The :mod:`traceback` module may"
14371438" be helpful for more specialized needs."
1438- msgstr ""
1439+ msgstr "虽然上述处理方式很简单,但也给出了根据喜好对异常信息进行格式化输出的方案。或许 :mod:`traceback` 模块能满足更专门的需求。 "
14391440
14401441#: ../../howto/logging-cookbook.rst:2221
14411442msgid "Speaking logging messages"
You can’t perform that action at this time.
0 commit comments