diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-02-25 16:05:26 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-02-25 16:05:26 (GMT) |
commit | a29a9dd1564020b499cfc56698a5b726485660fe (patch) | |
tree | e365d6fb2a3411940ca9f41227e430ca8ab2ecd5 /Doc | |
parent | aa7c1792855fa7db7b4c2f71573e0c35b0fe2ea1 (diff) | |
download | cpython-a29a9dd1564020b499cfc56698a5b726485660fe.zip cpython-a29a9dd1564020b499cfc56698a5b726485660fe.tar.gz cpython-a29a9dd1564020b499cfc56698a5b726485660fe.tar.bz2 |
Documented QueueListener change.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/logging.handlers.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst index eda9302..9346e99 100644 --- a/Doc/library/logging.handlers.rst +++ b/Doc/library/logging.handlers.rst @@ -838,6 +838,15 @@ possible, while any potentially slow operations (such as sending an email via Note that if you don't call this before your application exits, there may be some records still left on the queue, which won't be processed. + .. method:: enqueue_sentinel() + + Writes a sentinel to the queue to tell the listener to quit. This + implementation uses ``put_nowait()``. You may want to override this + method if you want to use timeouts or work with custom queue + implementations. + + .. versionadded:: 3.3 + .. seealso:: |