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

Skip to content

Commit 339fbb3

Browse files
[po] auto sync
1 parent 7d282a3 commit 339fbb3

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

library/logging.handlers.po

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,28 +454,39 @@ msgid ""
454454
"etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` "
455455
"etc. respectively."
456456
msgstr ""
457+
"你可以使用 *maxBytes* 和 *backupCount* 值来允许文件以预定的大小执行 :dfn:`rollover`。 "
458+
"当即将超出预定大小时,将关闭旧文件并打开一个新文件用于输出。 只要当前日志文件长度接近 *maxBytes* 就会发生轮换;但是如果 "
459+
"*maxBytes* 或 *backupCount* 两者之一的值为零,就不会发生轮换,因此你通常要设置 *backupCount* 至少为 1,而 "
460+
"*maxBytes* 不能为零。 当 *backupCount* 为非零值时,系统将通过为原文件名添加扩展名 '.1', '.2' 等来保存旧日志文件。"
461+
" 例如,当 *backupCount* 为 5 而基本文件名为 :file:`app.log` 时,你将得到 :file:`app.log`, "
462+
":file:`app.log.1`, :file:`app.log.2` 直至 :file:`app.log.5`。 当前被写入的文件总是 "
463+
":file:`app.log`。 当此文件写满时,它会被关闭并重户名为 :file:`app.log.1`,而如果文件 "
464+
":file:`app.log.1`, :file:`app.log.2` 等存在,则它们会被分别重命名为 :file:`app.log.2`, "
465+
":file:`app.log.3` 等等。"
457466

458467
#: ../../library/logging.handlers.rst:331
459468
#: ../../library/logging.handlers.rst:437
460469
msgid "Does a rollover, as described above."
461-
msgstr ""
470+
msgstr "执行上文所描述的轮换。"
462471

463472
#: ../../library/logging.handlers.rst:336
464473
msgid ""
465474
"Outputs the record to the file, catering for rollover as described "
466475
"previously."
467-
msgstr ""
476+
msgstr "将记录输出到文件,以适应上文所描述的轮换。"
468477

469478
#: ../../library/logging.handlers.rst:342
470479
msgid "TimedRotatingFileHandler"
471-
msgstr ""
480+
msgstr "TimedRotatingFileHandler"
472481

473482
#: ../../library/logging.handlers.rst:344
474483
msgid ""
475484
"The :class:`TimedRotatingFileHandler` class, located in the "
476485
":mod:`logging.handlers` module, supports rotation of disk log files at "
477486
"certain timed intervals."
478487
msgstr ""
488+
":class:`TimedRotatingFileHandler` 类位于 :mod:`logging.handlers` "
489+
"模块,它支持基于特定时间间隔的磁盘日志文件轮换。"
479490

480491
#: ../../library/logging.handlers.rst:351
481492
msgid ""

0 commit comments

Comments
 (0)