1111# 1lin24 <[email protected] >, 20191212# Leo Li <[email protected] >, 20191313# Shengjing Zhu <[email protected] >, 201914- # Freesand Leo <[email protected] >, 20191514# ppcfish <[email protected] >, 201915+ # WH-2099 <[email protected] >, 202016+ # Freesand Leo <[email protected] >, 20201617#
1718#, fuzzy
1819msgid ""
@@ -21,7 +22,7 @@ msgstr ""
2122"Report-Msgid-Bugs-To : \n "
2223"POT-Creation-Date : 2020-03-25 13:16+0000\n "
2324"PO-Revision-Date : 2017-02-16 23:17+0000\n "
24- "Last-Translator : ppcfish <ppcfish@gmail .com>, 2019 \n "
25+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020 \n "
2526"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2627"MIME-Version : 1.0\n "
2728"Content-Type : text/plain; charset=UTF-8\n "
@@ -206,14 +207,14 @@ msgid ""
206207"If an ancestor is found with a level other than NOTSET, then that ancestor's"
207208" level is treated as the effective level of the logger where the ancestor "
208209"search began, and is used to determine how a logging event is handled."
209- msgstr ""
210+ msgstr "如果发现某个父级的级别不是 NOTSET ,那么该父级的级别将被视为发起搜索的记录器的有效级别,并用于确定如何处理日志事件。 "
210211
211212#: ../../library/logging.rst:114
212213msgid ""
213214"If the root is reached, and it has a level of NOTSET, then all messages will"
214215" be processed. Otherwise, the root's level will be used as the effective "
215216"level."
216- msgstr ""
217+ msgstr "如果搜索到达根 logger ,并且其级别为 NOTSET,则将处理所有消息。否则,将使用根记录器的级别作为有效级别。 "
217218
218219#: ../../library/logging.rst:117 ../../library/logging.rst:426
219220msgid "See :ref:`levels` for a list of levels."
@@ -227,6 +228,9 @@ msgid ""
227228"such as e.g. :meth:`getEffectiveLevel` and :meth:`isEnabledFor` will "
228229"return/expect to be passed integers."
229230msgstr ""
231+ "现在 *level* 参数可以接受形如 'INFO' 的级别字符串表示形式,以代替形如 :const:`INFO` 的整数常量。 "
232+ "但是请注意,级别在内部存储为整数,并且 :meth:`getEffectiveLevel` 和 :meth:`isEnabledFor` "
233+ "等方法的传入/返回值也为整数。"
230234
231235#: ../../library/logging.rst:129
232236msgid ""
@@ -235,6 +239,8 @@ msgid ""
235239"``logging.disable(level)`` and then the logger's effective level as "
236240"determined by :meth:`getEffectiveLevel`."
237241msgstr ""
242+ "指示此记录器是否将处理级别为 *level* 的消息。此方法首先检查由 ``logging.disable(level)`` "
243+ "设置的模块级的级别,然后检查由 :meth:`getEffectiveLevel` 确定的记录器的有效级别。"
238244
239245#: ../../library/logging.rst:137
240246msgid ""
@@ -245,6 +251,9 @@ msgid ""
245251"returned is an integer, typically one of :const:`logging.DEBUG`, "
246252":const:`logging.INFO` etc."
247253msgstr ""
254+ "指示此记录器的有效级别。如果通过 :meth:`setLevel` 设置了除 :const:`NOTSET` "
255+ "以外的值,则返回该值。否则,将层次结构遍历到根,直到找到除 :const:`NOTSET` 以外的其他值,然后返回该值。返回的值是一个整数,通常为 "
256+ ":const:`logging.DEBUG`、 :const:`logging.INFO` 等等。"
248257
249258#: ../../library/logging.rst:147
250259msgid ""
@@ -255,6 +264,9 @@ msgid ""
255264"when the parent logger is named using e.g. ``__name__`` rather than a "
256265"literal string."
257266msgstr ""
267+ "返回由后缀确定的,是该记录器的后代的记录器。 因此,``logging.getLogger('abc').getChild('def.ghi')`` 与"
268+ " ``logging.getLogger('abc.def.ghi')`` 将返回相同的记录器。 这是一个便捷方法,当使用如 ``__name__`` "
269+ "而不是字符串字面值命名父记录器时很有用。"
258270
259271#: ../../library/logging.rst:158
260272msgid ""
0 commit comments