@@ -1376,25 +1376,25 @@ msgstr ""
13761376msgid ""
13771377"Initializes the handler with a buffer of the specified capacity. Here, "
13781378"*capacity* means the number of logging records buffered."
1379- msgstr ""
1379+ msgstr "使用指定容量的缓冲区初始化处理程序。 这里,*capacity* 是指缓冲的日志记录数量。 "
13801380
13811381#: ../../library/logging.handlers.rst:849
13821382msgid ""
13831383"Append the record to the buffer. If :meth:`shouldFlush` returns true, call "
13841384":meth:`flush` to process the buffer."
1385- msgstr ""
1385+ msgstr "将记录添加到缓冲区。 如果 :meth:`shouldFlush` 返回真值,则会调用 :meth:`flush` 来处理缓冲区。 "
13861386
13871387#: ../../library/logging.handlers.rst:855
13881388msgid ""
13891389"You can override this to implement custom flushing behavior. This version "
13901390"just zaps the buffer to empty."
1391- msgstr ""
1391+ msgstr "你可以重载此方法来实现自定义的刷新行为。 此版本只是将缓冲区清空。 "
13921392
13931393#: ../../library/logging.handlers.rst:861
13941394msgid ""
13951395"Return ``True`` if the buffer is up to capacity. This method can be "
13961396"overridden to implement custom flushing strategies."
1397- msgstr ""
1397+ msgstr "如果缓冲区容量已满则返回 ``True``。 可以重载此方法以实现自定义的刷新策略。 "
13981398
13991399#: ../../library/logging.handlers.rst:867
14001400msgid ""
@@ -1407,30 +1407,36 @@ msgid ""
14071407"not specified or specified as ``True``, the previous behaviour of flushing "
14081408"the buffer will occur when the handler is closed."
14091409msgstr ""
1410+ "返回一个 :class:`MemoryHandler` 类的新实例。 该实例使用 *capacity* 指定的缓冲区大小(要缓冲的记录数量)来初始化。 "
1411+ "如果 *flushLevel* 未指定,则使用 :const:`ERROR`。 如果未指定 *target*,则需要在此处理程序执行任何实际操作之前使用"
1412+ " :meth:`setTarget` 来设置目标。 如果 *flushOnClose* 指定为 ``False``,则当处理程序被关闭时 *不会* "
1413+ "刷新缓冲区。 如果未指定或指定为 ``True``,则当处理程序被关闭时将会发生之前的缓冲区刷新行为。"
14101414
14111415#: ../../library/logging.handlers.rst:876
14121416msgid "The *flushOnClose* parameter was added."
1413- msgstr ""
1417+ msgstr "增加了 *flushOnClose* 形参。 "
14141418
14151419#: ../../library/logging.handlers.rst:882
14161420msgid ""
14171421"Calls :meth:`flush`, sets the target to ``None`` and clears the buffer."
1418- msgstr ""
1422+ msgstr "调用 :meth:`flush`,设置目标为 ``None`` 并清空缓冲区。 "
14191423
14201424#: ../../library/logging.handlers.rst:888
14211425msgid ""
14221426"For a :class:`MemoryHandler`, flushing means just sending the buffered "
14231427"records to the target, if there is one. The buffer is also cleared when this"
14241428" happens. Override if you want different behavior."
14251429msgstr ""
1430+ "对于 :class:`MemoryHandler`,刷新是指将缓冲的记录发送到目标,如果存在目标的话。 当此行为发生时缓冲区也将被清空。 "
1431+ "如果你想要不同的行为请重载此方法。"
14261432
14271433#: ../../library/logging.handlers.rst:895
14281434msgid "Sets the target handler for this handler."
1429- msgstr ""
1435+ msgstr "设置此处理程序的目标处理程序。 "
14301436
14311437#: ../../library/logging.handlers.rst:900
14321438msgid "Checks for buffer full or a record at the *flushLevel* or higher."
1433- msgstr ""
1439+ msgstr "检测缓冲区是否已满或是有记录为 *flushLevel* 或更高级别。 "
14341440
14351441#: ../../library/logging.handlers.rst:906
14361442msgid "HTTPHandler"
0 commit comments