Dale Collison
74723e1110
gh-109461: Update logging module lock to use context manager ( #109462 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-27 18:26:41 +02:00
Jochem Boersma
5e5a34ac3a
gh-107028: tiny textual changes in logging docs and docstrings (GH-107029)
2023-07-22 21:43:18 +01:00
Vinay Sajip
f6b1e4048d
gh-98307: Add docstring and documentation for SysLogHandler.createSocket (GH-98319)
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-16 09:15:46 +01:00
Vinay Sajip
013e659e49
gh-92007: Handle elevation errors in NTEventLogHandler more grace… (GH-96322)
2022-08-27 12:13:19 +01:00
Duncan Grisby
1499d73b3e
gh-96159: Fix significant performance degradation in logging.TimedRotat… (GH-96182)
2022-08-23 07:28:43 +01:00
Erik Montnemery
c60f125533
bpo-46755: Don't log stack info twice in QueueHandler (GH-31355)
2022-07-05 15:23:12 +01:00
Vinay Sajip
1b74803991
gh-93162: Add ability to configure QueueHandler/QueueListener together (GH-93269)
...
Also, provide getHandlerByName() and getHandlerNames() APIs.
Closes #93162 .
2022-06-07 10:20:35 +02:00
Vinay Sajip
cb589d1b6b
bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093)
2021-12-14 00:53:37 +00:00
Vinay Sajip
8a77f59de5
bpo-45628: Check all parts of the suffix for an extension match. (GH-29310)
2021-10-29 14:40:37 +01:00
Vinay Sajip
62a667784b
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822)
...
…iles.
Also changed some historical return values from 1 -> True and 0 -> False.
2021-10-10 08:15:24 -07:00
Kirill Pinchuk
3d315c3116
bpo-44291: Fix reconnection in logging.handlers.SysLogHandler (GH-26490)
2021-08-05 14:58:16 +01:00
Vinay Sajip
6ff8903809
bpo-44753: Don't use logfile extension when determining old files to be deleted (GH-27475)
2021-07-30 12:48:50 +01:00
Mariusz Felisiak
11749e2dc2
bpo-44740: Lowercase "internet" and "web" where appropriate. ( #27378 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-27 00:11:55 +02:00
Vinay Sajip
3b8075f907
bpo-44473: Update docstring and documentation for QueueHandler.prepar… (GH-27140)
...
…e().
2021-07-14 17:06:48 -07:00
Inada Naoki
fb78692f2a
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189)
...
* Fix _sitebuiltins
* Fix test_inspect
* Fix test_interpreters
* Fix test_io
* Fix test_iter
* Fix test_json
* Fix test_linecache
* Fix test_lltrace
* Fix test_logging
* Fix logging
2021-04-06 11:18:41 +09:00
Irit Katriel
2353d77fad
bpo-41503: Fix race between setTarget and flush in logging.handlers.MemoryHandler (GH-21765)
2020-08-16 16:10:13 +01:00
l0rb
22a9a546ff
bpo-39826: add getConnection() hook to logging HTTPHandler (GH-18745)
2020-03-04 10:49:51 +00:00
Vinay Sajip
ce54519aa0
bpo-39292: Add missing syslog facility codes. (GH-17945)
2020-01-10 19:37:48 +00:00
Daniel Andersson
d89cea15ad
bpo-38781: Clear buffer in MemoryHandler flush (GH-17132)
...
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.
2019-11-13 09:03:45 +00:00
l0rb
519cb8772a
bpo-38716: stop rotating handlers from setting inherited namer and rotator to None (GH-17072)
2019-11-06 21:21:40 +00:00
Vinay Sajip
ca7b504a4d
bpo-37111: Add 'encoding' and 'errors' parameters to logging.basicCon… (GH-14008)
2019-06-17 17:40:52 +01:00
Boris Feld
800d786370
Fix extraneous whitespace in QueueListener.prepare (GH-13803)
2019-06-04 16:20:17 +01:00
Bar Harel
6b282e1887
bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)
...
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
2019-06-01 02:19:09 -07:00
Manjusaka
da6424e96a
bpo-35726: Prevented QueueHandler formatting from affecting other handlers (GH-11537)
...
QueueHandler.prepare() now makes a copy of the record before modifying and enqueueing it, to avoid affecting other handlers in the chain.
2019-01-23 07:08:38 +00:00
Cheryl Sabella
d345bb4d9b
bpo-34334: Don't log traceback twice in QueueHandler (GH-9537)
2018-09-26 00:00:08 +01:00
Vinay Sajip
e96ba183c4
bpo-30904: Removed duplicated Host: header. ( #4465 )
2017-11-19 18:36:17 +00:00
Lovesh Harchandani
afad147b59
bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812)
...
TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
2017-10-27 08:04:33 +01:00
Antoine Pitrou
a6a4dc816d
bpo-31370: Remove support for threads-less builds ( #3385 )
...
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
2017-09-07 18:56:24 +02:00
favll
adfe3440f6
bpo-31084: QueueHandler now formats messages correctly. (GH-2954)
2017-08-01 19:12:26 +01:00
Xiang Zhang
0b4b57df96
bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ( #1676 )
2017-06-01 21:11:56 +08:00
Коренберг Марк
1b038e0738
bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed ( #663 ) ( #663 )
2017-03-17 15:25:05 +00:00
Vinay Sajip
93e6b3314d
Closes #27930 : Merged fix from 3.5.
2016-09-08 01:24:12 +01:00
Vinay Sajip
d61910c598
Fixes #27930 : improved QueueListener behaviour.
2016-09-08 01:13:39 +01:00
Vinay Sajip
638e622055
Closes #27493 : accepted Path objects in file handlers for logging.
2016-07-22 18:23:04 +01:00
Vinay Sajip
cccf6068fa
Closes #26559 : Allow configuring flush-on-close behaviour of MemoryHandler.
2016-07-22 16:27:31 +01:00
Vinay Sajip
24a72ca239
Fixed #27251 : merged fix from 3.5.
2016-06-07 21:20:39 +01:00
Vinay Sajip
1bf197eb14
Fixed #27251 : corrected string/bytes handling in credentials.
2016-06-07 21:19:55 +01:00
Vinay Sajip
c1681674d4
Closes #25685 : Merged fix from 3.5.
2015-12-26 12:51:43 +00:00
Vinay Sajip
9cdfd18fc6
Closes #25685 : Made SocketHandler emission more efficient.
2015-12-26 12:48:44 +00:00
Vinay Sajip
03de71d136
Closes #25411 : Merged fix from 3.5.
2015-10-17 16:24:23 +01:00
Vinay Sajip
3f445f799a
Closes #25411 : Merged fix from 3.4.
2015-10-17 16:17:52 +01:00
Vinay Sajip
277640af0f
Closes #25411 : Improved Unicode support in SMTPHandler.
2015-10-17 16:13:10 +01:00
Vinay Sajip
29a1445136
Closes #24884 : refactored WatchedFileHandler file reopening into a separate method, based on a suggestion and patch by Marian Horban.
2015-10-01 20:54:41 +01:00
Serhiy Storchaka
7e7a3dba5f
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:41 +03:00
Serhiy Storchaka
2116b12da5
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:29:28 +03:00
Vinay Sajip
365701add9
Added respect_handler_level to QueueListener.
2015-02-09 19:49:00 +00:00
Benjamin Peterson
43052a14c1
add context parameter to HTTPHandler ( closes #22788 )
2014-11-23 20:36:44 -06:00
Vinay Sajip
c33a0cc61e
Brought excluded code into the scope of a try block in SysLogHandler.emit().
2014-11-01 19:58:47 +00:00
Vinay Sajip
16c41ab460
Issue #22646 : Accept list as well as tuple to support initialisation via dictConfig().
2014-10-17 08:49:38 +01:00
Vinay Sajip
0220048083
Issue #21742 : Set stream to None after closing.
2014-06-14 10:22:05 +01:00