@@ -90,27 +90,27 @@ msgstr ""
9090msgid ""
9191"A ``level`` which is not a string or which is a string not corresponding to "
9292"an actual logging level."
93- msgstr ""
93+ msgstr "``level`` 不是字符串或者不是对应于实际日志记录级别的字符串。 "
9494
9595#: ../../library/logging.config.rst:50
9696msgid "A ``propagate`` value which is not a boolean."
97- msgstr ""
97+ msgstr "``propagate`` 值不是布尔类型。 "
9898
9999#: ../../library/logging.config.rst:51
100100msgid "An id which does not have a corresponding destination."
101- msgstr ""
101+ msgstr "id 没有对应的目标。 "
102102
103103#: ../../library/logging.config.rst:52
104104msgid "A non-existent handler id found during an incremental call."
105- msgstr ""
105+ msgstr "在增量调用期间发现不存在的处理程序 id。 "
106106
107107#: ../../library/logging.config.rst:53
108108msgid "An invalid logger name."
109- msgstr ""
109+ msgstr "无效的日志记录器名称。 "
110110
111111#: ../../library/logging.config.rst:54
112112msgid "Inability to resolve to an internal or external object."
113- msgstr ""
113+ msgstr "无法解析为内部或外部对象。 "
114114
115115#: ../../library/logging.config.rst:56
116116msgid ""
@@ -121,13 +121,18 @@ msgid ""
121121":class:`DictConfigurator`. You can replace the value of "
122122":attr:`dictConfigClass` with a suitable implementation of your own."
123123msgstr ""
124+ "解析由 :class:`DictConfigurator` 类执行,该类的构造器可传入用于配置的字典,并且具有 :meth:`configure` "
125+ "方法。 :mod:`logging.config` 模块具有可调用属性 :attr:`dictConfigClass`,其初始值设为 "
126+ ":class:`DictConfigurator`。 你可以使用你自己的适当实现来替换 :attr:`dictConfigClass` 的值。"
124127
125128#: ../../library/logging.config.rst:64
126129msgid ""
127130":func:`dictConfig` calls :attr:`dictConfigClass` passing the specified "
128131"dictionary, and then calls the :meth:`configure` method on the returned "
129132"object to put the configuration into effect::"
130133msgstr ""
134+ ":func:`dictConfig` 会调用 :attr:`dictConfigClass` 并传入指定的字典,然后在所返回的对象上调用 "
135+ ":meth:`configure` 方法以使配置生效::"
131136
132137#: ../../library/logging.config.rst:71
133138msgid ""
@@ -138,6 +143,10 @@ msgid ""
138143":func:`dictConfig` could be called exactly as in the default, uncustomized "
139144"state."
140145msgstr ""
146+ "例如,:class:`DictConfigurator` 的子类可以在它自己的 :meth:`__init__()` 中调用 "
147+ "``DictConfigurator.__init__()``,然后设置可以在后续 :meth:`configure` 调用中使用的自定义前缀。 "
148+ ":attr:`dictConfigClass` 将被绑定到这个新的子类,然后就可以与在默认的未定制状态下完全相同的方式调用 "
149+ ":func:`dictConfig`。"
141150
142151#: ../../library/logging.config.rst:82
143152msgid ""
0 commit comments