File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ msgid ""
195195"system. At its simplest, log messages are sent to a file or to "
196196"``sys.stderr``::"
197197msgstr ""
198+ ":mod:`logging` 模块提供功能齐全且灵活的日志记录系统。在最简单的情况下,日志消息被发送到文件或 ``sys.stderr``\\ ::"
198199
199200#: ../../tutorial/stdlib2.rst:225
200201msgid "This produces the following output:"
@@ -209,17 +210,22 @@ msgid ""
209210":const:`~logging.DEBUG`, :const:`~logging.INFO`, :const:`~logging.WARNING`, "
210211":const:`~logging.ERROR`, and :const:`~logging.CRITICAL`."
211212msgstr ""
213+ "默认情况下,informational 和 debugging "
214+ "消息被压制,输出会发送到标准错误流。其他输出选项包括将消息转发到电子邮件,数据报,套接字或 HTTP "
215+ "服务器。新的过滤器可以根据消息优先级选择不同的路由方式:\\ :const:`~logging.DEBUG`\\ ,\\ "
216+ ":const:`~logging.INFO`\\ ,\\ :const:`~logging.WARNING`\\ ,\\ "
217+ ":const:`~logging.ERROR`\\ ,和 :const:`~logging.CRITICAL`\\ 。"
212218
213219#: ../../tutorial/stdlib2.rst:240
214220msgid ""
215221"The logging system can be configured directly from Python or can be loaded "
216222"from a user editable configuration file for customized logging without "
217223"altering the application."
218- msgstr ""
224+ msgstr "日志系统可以直接从 Python 配置,也可以从用户配置文件加载,以便自定义日志记录而无需更改应用程序。 "
219225
220226#: ../../tutorial/stdlib2.rst:248
221227msgid "Weak References"
222- msgstr ""
228+ msgstr "弱引用 "
223229
224230#: ../../tutorial/stdlib2.rst:250
225231msgid ""
You can’t perform that action at this time.
0 commit comments