diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-01 12:12:08 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-07-01 12:12:08 (GMT) |
commit | 3db5c5c7630af92336a8c0a269e05607cd68f9e7 (patch) | |
tree | d08dd87a9f680550f3526d4ff9069c5c8ea6e4ac /Doc/howto | |
parent | cb083f7cdf604c1d9d264f387f9e8846bc953eb3 (diff) | |
download | cpython-3db5c5c7630af92336a8c0a269e05607cd68f9e7.zip cpython-3db5c5c7630af92336a8c0a269e05607cd68f9e7.tar.gz cpython-3db5c5c7630af92336a8c0a269e05607cd68f9e7.tar.bz2 |
bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler. (GH-14498) (GH-14507)
(cherry picked from commit 84de34e39eb9e49b2ae691c6f67df8d7da3561de)
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/logging-cookbook.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index 71f9fc9..87ac79e 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -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:: |