@@ -840,7 +840,8 @@ should, then :meth:`flush` is expected to do the flushing.
840840
841841.. class :: BufferingHandler(capacity)
842842
843- Initializes the handler with a buffer of the specified capacity.
843+ Initializes the handler with a buffer of the specified capacity. Here,
844+ *capacity * means the number of logging records buffered.
844845
845846
846847 .. method :: emit(record)
@@ -864,12 +865,13 @@ should, then :meth:`flush` is expected to do the flushing.
864865.. class :: MemoryHandler(capacity, flushLevel=ERROR, target=None, flushOnClose=True)
865866
866867 Returns a new instance of the :class: `MemoryHandler ` class. The instance is
867- initialized with a buffer size of *capacity *. If *flushLevel * is not specified,
868- :const: `ERROR ` is used. If no *target * is specified, the target will need to be
869- set using :meth: `setTarget ` before this handler does anything useful. If
870- *flushOnClose * is specified as ``False ``, then the buffer is *not * flushed when
871- the handler is closed. If not specified or specified as ``True ``, the previous
872- behaviour of flushing the buffer will occur when the handler is closed.
868+ initialized with a buffer size of *capacity * (number of records buffered).
869+ If *flushLevel * is not specified, :const: `ERROR ` is used. If no *target * is
870+ specified, the target will need to be set using :meth: `setTarget ` before this
871+ handler does anything useful. If *flushOnClose * is specified as ``False ``,
872+ then the buffer is *not * flushed when the handler is closed. If not specified
873+ or specified as ``True ``, the previous behaviour of flushing the buffer will
874+ occur when the handler is closed.
873875
874876 .. versionchanged :: 3.6
875877 The *flushOnClose * parameter was added.
0 commit comments