@@ -92,27 +92,27 @@ msgstr ""
9292msgid ""
9393"A ``level`` which is not a string or which is a string not corresponding to "
9494"an actual logging level."
95- msgstr ""
95+ msgstr "``level`` 不是字符串或者不是对应于实际日志记录级别的字符串。 "
9696
9797#: ../../library/logging.config.rst:50
9898msgid "A ``propagate`` value which is not a boolean."
99- msgstr ""
99+ msgstr "``propagate`` 值不是布尔类型。 "
100100
101101#: ../../library/logging.config.rst:51
102102msgid "An id which does not have a corresponding destination."
103- msgstr ""
103+ msgstr "id 没有对应的目标。 "
104104
105105#: ../../library/logging.config.rst:52
106106msgid "A non-existent handler id found during an incremental call."
107- msgstr ""
107+ msgstr "在增量调用期间发现不存在的处理程序 id。 "
108108
109109#: ../../library/logging.config.rst:53
110110msgid "An invalid logger name."
111- msgstr ""
111+ msgstr "无效的日志记录器名称。 "
112112
113113#: ../../library/logging.config.rst:54
114114msgid "Inability to resolve to an internal or external object."
115- msgstr ""
115+ msgstr "无法解析为内部或外部对象。 "
116116
117117#: ../../library/logging.config.rst:56
118118msgid ""
@@ -123,13 +123,18 @@ msgid ""
123123":class:`DictConfigurator`. You can replace the value of "
124124":attr:`dictConfigClass` with a suitable implementation of your own."
125125msgstr ""
126+ "解析由 :class:`DictConfigurator` 类执行,该类的构造器可传入用于配置的字典,并且具有 :meth:`configure` "
127+ "方法。 :mod:`logging.config` 模块具有可调用属性 :attr:`dictConfigClass`,其初始值设为 "
128+ ":class:`DictConfigurator`。 你可以使用你自己的适当实现来替换 :attr:`dictConfigClass` 的值。"
126129
127130#: ../../library/logging.config.rst:64
128131msgid ""
129132":func:`dictConfig` calls :attr:`dictConfigClass` passing the specified "
130133"dictionary, and then calls the :meth:`configure` method on the returned "
131134"object to put the configuration into effect::"
132135msgstr ""
136+ ":func:`dictConfig` 会调用 :attr:`dictConfigClass` 并传入指定的字典,然后在所返回的对象上调用 "
137+ ":meth:`configure` 方法以使配置生效::"
133138
134139#: ../../library/logging.config.rst:71
135140msgid ""
@@ -140,6 +145,10 @@ msgid ""
140145":func:`dictConfig` could be called exactly as in the default, uncustomized "
141146"state."
142147msgstr ""
148+ "例如,:class:`DictConfigurator` 的子类可以在它自己的 :meth:`__init__()` 中调用 "
149+ "``DictConfigurator.__init__()``,然后设置可以在后续 :meth:`configure` 调用中使用的自定义前缀。 "
150+ ":attr:`dictConfigClass` 将被绑定到这个新的子类,然后就可以与在默认的未定制状态下完全相同的方式调用 "
151+ ":func:`dictConfig`。"
143152
144153#: ../../library/logging.config.rst:82
145154msgid ""
0 commit comments