summaryrefslogtreecommitdiffstats
path: root/Lib/logging/handlers.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38781: Clear buffer in MemoryHandler flush (GH-17132)Daniel Andersson2019-11-131-2/+2
| | | | | | | | This makes it easier to use a custom buffer when subclassing MemoryHandler (by avoiding the explicity empty list literal assignment in the flush method). For example, collection.deque can now be used without any modifications to MemoryHandler.flush. The same applies to BufferingHandler.
* bpo-38716: stop rotating handlers from setting inherited namer and rotator ↵l0rb2019-11-061-2/+3
| | | | to None (GH-17072)
* bpo-37111: Add 'encoding' and 'errors' parameters to logging.basicCon… ↵Vinay Sajip2019-06-171-8/+19
| | | | (GH-14008)
* Fix extraneous whitespace in QueueListener.prepare (GH-13803)Boris Feld2019-06-041-1/+1
|
* bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)Bar Harel2019-06-011-0/+2
| | | | | | | | Fixed QueueListener in order to avoid random deadlocks. Unable to add regression tests atm due to time constraints, will add it in a bit. Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO). https://bugs.python.org/issue36813
* bpo-35726: Prevented QueueHandler formatting from affecting other handlers ↵Manjusaka2019-01-231-0/+3
| | | | | (GH-11537) QueueHandler.prepare() now makes a copy of the record before modifying and enqueueing it, to avoid affecting other handlers in the chain.
* bpo-34334: Don't log traceback twice in QueueHandler (GH-9537)Cheryl Sabella2018-09-251-2/+3
|
* bpo-30904: Removed duplicated Host: header. (#4465)Vinay Sajip2017-11-191-1/+3
|
* bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812)Lovesh Harchandani2017-10-271-1/+1
| | | TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-109/+106
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-31084: QueueHandler now formats messages correctly. (GH-2954)favll2017-08-011-4/+5
|
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-011-5/+20
| | | | (#1676)
* bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed ↵Коренберг Марк2017-03-171-1/+8
| | | | (#663) (#663)
* Closes #27930: Merged fix from 3.5.Vinay Sajip2016-09-081-15/+2
|\
| * Fixes #27930: improved QueueListener behaviour.Vinay Sajip2016-09-081-17/+4
| |
* | Closes #27493: accepted Path objects in file handlers for logging.Vinay Sajip2016-07-221-0/+3
| |
* | Closes #26559: Allow configuring flush-on-close behaviour of MemoryHandler.Vinay Sajip2016-07-221-5/+15
| |
* | Fixed #27251: merged fix from 3.5.Vinay Sajip2016-06-071-2/+2
|\ \ | |/
| * Fixed #27251: corrected string/bytes handling in credentials.Vinay Sajip2016-06-071-2/+2
| |
* | Closes #25685: Merged fix from 3.5.Vinay Sajip2015-12-261-0/+2
|\ \ | |/
| * Closes #25685: Made SocketHandler emission more efficient.Vinay Sajip2015-12-261-0/+2
| |
* | Closes #25411: Merged fix from 3.5.Vinay Sajip2015-10-171-8/+10
|\ \ | |/
| * Closes #25411: Merged fix from 3.4.Vinay Sajip2015-10-171-8/+10
| |\
| | * Closes #25411: Improved Unicode support in SMTPHandler.Vinay Sajip2015-10-171-10/+12
| | |
* | | Closes #24884: refactored WatchedFileHandler file reopening into a separate ↵Vinay Sajip2015-10-011-3/+12
|/ / | | | | | | method, based on a suggestion and patch by Marian Horban.
* | Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-9/+14
|\ \ | |/ | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-9/+14
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | Added respect_handler_level to QueueListener.Vinay Sajip2015-02-091-4/+10
|/
* add context parameter to HTTPHandler (closes #22788)Benjamin Peterson2014-11-241-2/+7
|
* Brought excluded code into the scope of a try block in SysLogHandler.emit().Vinay Sajip2014-11-011-14/+14
|
* Issue #22646: Accept list as well as tuple to support initialisation via ↵Vinay Sajip2014-10-171-2/+2
| | | | dictConfig().
* Issue #21742: Set stream to None after closing.Vinay Sajip2014-06-141-0/+1
|
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-201-2/+1
|
* Issue #19182: Fixed socket leak on exception when connecting.Vinay Sajip2013-10-061-1/+5
|
* logging: added support for Unix domain sockets to SocketHandler and ↵Vinay Sajip2013-09-271-3/+17
| | | | DatagramHandler.
* Closes #18941: Merged fix from 3.3.Vinay Sajip2013-09-061-2/+4
|\
| * Issue #18941: Respected delay when doing rollover.Vinay Sajip2013-09-061-2/+4
| |
* | Closes #18940: Merged fix from 3.3.Vinay Sajip2013-09-061-1/+3
|\ \ | |/
| * Issue #18940: Handled low-volume logging when delay is True.Vinay Sajip2013-09-061-1/+3
| |
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-2/+2
| | | | | | | | ModuleNotFoundError.
* | Closes #17981: Merged fix from 3.3.Vinay Sajip2013-05-161-0/+1
|\ \ | |/
| * Issue #17981: Closed socket on error in SysLogHandler.Vinay Sajip2013-05-161-0/+1
| |
* | Closes #17795: Reverted backwards-incompatible change in SysLogHandler with ↵Vinay Sajip2013-04-221-4/+27
|\ \ | |/ | | | | Unix domain sockets.
| * Issue #17795: Reverted backwards-incompatible change in SysLogHandler with ↵Vinay Sajip2013-04-221-5/+24
| | | | | | | | Unix domain sockets.
* | Closed #9556: Allowed specifying a time-of-day for a ↵Vinay Sajip2013-04-121-7/+21
| | | | | | | | TimedRotatingFileHandler to rotate.
* | Issue #17516: use comment syntax for comments, instead of multiline stringVictor Stinner2013-03-261-4/+3
| |
* | modernize some modules' code by replacing ↵Giampaolo Rodola'2013-02-121-5/+2
| | | | | | | | OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
* | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-4/+4
| |
* | remove obsolete hasattr() check for socket.sendallGiampaolo Rodola'2012-10-261-9/+1
| |