@@ -95,6 +95,9 @@ msgid ""
9595" keyword argument (default is :const:`LOG_USER`) sets the default facility "
9696"for messages which do not have a facility explicitly encoded."
9797msgstr ""
98+ "可选的 *ident* 关键字参数是在每条消息前添加的字符串,默认为 ``sys.argv[0]`` 去除打头的路径部分。 可选的 "
99+ "*logoption* 关键字参数(默认为 0)是一个位字段 -- 请参见下文了解可能的组合值。 可选的 *facility* 关键字参数 (默认为 "
100+ ":const:`LOG_USER`) 为没有显式编码 facility 的消息设置默认的 facility。"
98101
99102#: ../../library/syslog.rst:51
100103msgid ""
@@ -110,6 +113,8 @@ msgid ""
110113"required. The default for *ident* was dependent on the system libraries, "
111114"and often was ``python`` instead of the name of the Python program file."
112115msgstr ""
116+ "在之前的版本中,不允许关键字参数,并且要求必须有 *ident*。 *ident* 的默认值依赖于系统库,它往往为 ``python`` 而不是 "
117+ "Python 程序文件的实际名称。"
113118
114119#: ../../library/syslog.rst:60
115120msgid ""
@@ -123,6 +128,8 @@ msgid ""
123128" :func:`openlog` hasn't already been called), and *ident* and other "
124129":func:`openlog` parameters are reset to defaults."
125130msgstr ""
131+ "这使得此模块在初始导入时行为固定。 例如,:func:`openlog` 将在首次调用 :func:`syslog` 时被调用(如果 "
132+ ":func:`openlog` 还未被调用过),并且 *ident* 和其他 :func:`openlog` 形参会被重置为默认值。"
126133
127134#: ../../library/syslog.rst:67
128135msgid ""
@@ -139,6 +146,9 @@ msgid ""
139146"The function ``LOG_UPTO(pri)`` calculates the mask for all priorities up to "
140147"and including *pri*."
141148msgstr ""
149+ "将优先级掩码设为 *maskpri* 并返回之前的掩码值。 调用 :func:`syslog` 并附带未在 *maskpri* "
150+ "中设置的优先级将会被忽略。 默认设置为记录所有优先级。 函数 ``LOG_MASK(pri)`` 可计算单个优先级 *pri* 的掩码。 函数 "
151+ "``LOG_UPTO(pri)`` 可计算包括 *pri* 在内的所有优先级的掩码。"
142152
143153#: ../../library/syslog.rst:79
144154msgid ""
0 commit comments