Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0694e8

Browse files
[po] auto sync
1 parent 143ba56 commit e0694e8

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

library/logging.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ msgid ""
294294
"is used; otherwise, :func:`sys.exc_info` is called to get the exception "
295295
"information."
296296
msgstr ""
297+
"如果 *exc_info* 的求值结果不为 false,则它将异常信息添加到日志消息中。如果提供了一个异常元组(按照 "
298+
":func:`sys.exc_info` 返回的格式)或一个异常实例,则将其使用;否则,调用 :func:`sys.exc_info` 以获取异常信息。"
297299

298300
#: ../../library/logging.rst:172 ../../library/logging.rst:960
299301
msgid ""
@@ -306,19 +308,24 @@ msgid ""
306308
"have been unwound, following an exception, while searching for exception "
307309
"handlers."
308310
msgstr ""
311+
"第二个可选关键字参数是 *stack_info*,默认为 ``False``。如果为 "
312+
"True,则将堆栈信息添加到日志消息中,包括实际的日志调用。请注意,这与通过指定 *exc_info* "
313+
"显示的堆栈信息不同:前者是从堆栈底部到当前线程中的日志记录调用的堆栈帧,而后者是在搜索异常处理程序时,跟踪异常而打开的堆栈帧的信息。"
309314

310315
#: ../../library/logging.rst:181 ../../library/logging.rst:969
311316
msgid ""
312317
"You can specify *stack_info* independently of *exc_info*, e.g. to just show "
313318
"how you got to a certain point in your code, even when no exceptions were "
314319
"raised. The stack frames are printed following a header line which says:"
315320
msgstr ""
321+
"您可以独立于 *exc_info* 来指定 "
322+
"*stack_info*,例如,即使在未引发任何异常的情况下,也可以显示如何到达代码中的特定点。堆栈帧在标题行之后打印:"
316323

317324
#: ../../library/logging.rst:189 ../../library/logging.rst:977
318325
msgid ""
319326
"This mimics the ``Traceback (most recent call last):`` which is used when "
320327
"displaying exception frames."
321-
msgstr ""
328+
msgstr "这模仿了显示异常帧时所使用的 ``Traceback (most recent call last):`` 。"
322329

323330
#: ../../library/logging.rst:192
324331
msgid ""
@@ -331,6 +338,9 @@ msgid ""
331338
"caller. The name of this parameter mirrors the equivalent one in the "
332339
":mod:`warnings` module."
333340
msgstr ""
341+
"第三个可选关键字参数是 *stacklevel*,默认为 ``1``。如果大于 1,则在为日志记录事件创建的 :class:`LogRecord` "
342+
"中计算行号和函数名时,将跳过相应数量的堆栈帧。可以在记录帮助程序时使用它,以便记录的函数名称,文件名和行号不是帮助程序的函数/方法的信息,而是其调用方的信息。此参数是"
343+
" :mod:`warnings` 模块中的同名等效参数。"
334344

335345
#: ../../library/logging.rst:200
336346
msgid ""
@@ -626,7 +636,7 @@ msgstr "*level* 形参现在接受像 'INFO' 这样的字符串形式的级别
626636

627637
#: ../../library/logging.rst:436
628638
msgid "Sets the :class:`Formatter` for this handler to *fmt*."
629-
msgstr ""
639+
msgstr "将此处理器的 :class:`Formatter` 设置为 *fmt*。"
630640

631641
#: ../../library/logging.rst:441
632642
msgid "Adds the specified filter *filter* to this handler."

0 commit comments

Comments
 (0)