mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler. (GH-14498)
This commit is contained in:
parent
4a2edc34a4
commit
84de34e39e
2 changed files with 12 additions and 10 deletions
|
@ -2266,9 +2266,9 @@ The script just arranges to decorate ``foo`` with a decorator which will do the
|
|||
conditional logging that's required. The decorator takes a logger as a parameter
|
||||
and attaches a memory handler for the duration of the call to the decorated
|
||||
function. The decorator can be additionally parameterised using a target handler,
|
||||
a level at which flushing should occur, and a capacity for the buffer. These
|
||||
default to a :class:`~logging.StreamHandler` which writes to ``sys.stderr``,
|
||||
``logging.ERROR`` and ``100`` respectively.
|
||||
a level at which flushing should occur, and a capacity for the buffer (number of
|
||||
records buffered). These default to a :class:`~logging.StreamHandler` which
|
||||
writes to ``sys.stderr``, ``logging.ERROR`` and ``100`` respectively.
|
||||
|
||||
Here's the script::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue