Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-124653: Relax (again) detection of queue API for logging handlers ↵ | Bénédikt Tran | 2024-10-07 | 1 | -7/+7 |
| | | | | (GH-124897) | ||||
* | gh-105376: Restore deprecated logging warn() method (#122775) | Victor Stinner | 2024-08-09 | 1 | -1/+16 |
| | | | | | | | | | This reverts commit dcc028d92428bd57358a5028ada2a53fc79fc365 and commit 6c54e5d72166d012b52155cbf13af9e533290e06. Keep the deprecated logging warn() method in Python 3.13. Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | ||||
* | gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788) | Serhiy Storchaka | 2024-08-08 | 1 | -2/+5 |
| | |||||
* | gh-121723: Relax constraints on queue objects for ↵ | Bénédikt Tran | 2024-08-02 | 1 | -26/+29 |
| | | | | `logging.handlers.QueueHandler`. (GH-122154) | ||||
* | gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-105887) | Craig Robson | 2024-06-27 | 1 | -3/+3 |
| | | | | | | | | | The check for whether the log file is a real file is expensive on NFS filesystems. This commit reorders the rollover condition checking to not do the file type check if the expected file size is less than the rotation threshold. Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> | ||||
* | gh-120868: Fix breaking change in `logging.config` when using `QueueHandler` ↵ | Janek Nouvertné | 2024-06-27 | 1 | -17/+36 |
| | | | | (GH-120872) | ||||
* | gh-120683: Fix an error in logging.LogRecord timestamp (GH-120709) | Serhiy Storchaka | 2024-06-24 | 1 | -1/+4 |
| | | | | | The integer part of the timestamp can be rounded up, while the millisecond calculation truncates, causing the log timestamp to be wrong by up to 999 ms (affected roughly 1 in 8 million timestamps). | ||||
* | gh-120485: Add an override of `allow_reuse_port` on classes subclassing ↵ | Idan Kapustian | 2024-06-16 | 1 | -1/+2 |
| | | | | | `socketserver.TCPServer` (GH-120488) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> | ||||
* | gh-119819: Update logging configuration to support joinable multiproc… ↵ | Vinay Sajip | 2024-06-05 | 1 | -1/+3 |
| | | | | | (GH-120090) gh-119819: Update logging configuration to support joinable multiprocessing manager queues. | ||||
* | gh-119819: Fix regression to allow logging configuration with multipr… ↵ | Vinay Sajip | 2024-06-04 | 1 | -1/+3 |
| | | | | (GH-120030) | ||||
* | gh-118868: logging QueueHandler fix passing of kwargs (GH-118869) | Kaundur | 2024-06-04 | 1 | -8/+8 |
| | | | | Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> | ||||
* | gh-117975: Ensure flush level is checked when configuring a logging ↵ | Vinay Sajip | 2024-04-17 | 1 | -12/+14 |
| | | | | MemoryHandler. (GH-117976) | ||||
* | gh-102402: Fix floating point math issue by using `time.time_ns()` in ↵ | Douglas Thor | 2024-04-16 | 1 | -6/+11 |
| | | | | `logging.LogRecord` (GH-102412) | ||||
* | [docs] Fix typo in docstring and add example to logging cookbook. (GH-117157) | Vinay Sajip | 2024-03-22 | 1 | -1/+1 |
| | |||||
* | gh-90535: Fix support of interval>1 in logging.TimedRotatingFileHandler ↵ | Serhiy Storchaka | 2024-03-16 | 1 | -1/+4 |
| | | | | | | | (GH-116220) Fix support of interval values > 1 in logging.TimedRotatingFileHandler for when='MIDNIGHT' and when='Wx'. | ||||
* | Replace stat.ST_xxx usage with os.stat().st_xxx (#116501) | Victor Stinner | 2024-03-08 | 1 | -20/+35 |
| | | | | | | | | Modernize code to use the new API which avoids the usage of the stat module just to read os.stat() members. * Sort logging.handlers imports. * Rework reopenIfNeeded() code to make it easier to follow. * Replace "not self.stream" with "self.stream is None". | ||||
* | gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812) | Serhiy Storchaka | 2024-03-03 | 1 | -27/+24 |
| | | | | | | | Improve algorithm for computing which rolled-over log files to delete in logging.TimedRotatingFileHandler. It is now reliable for handlers without namer and with arbitrary deterministic namer that leaves the datetime part in the file name unmodified. | ||||
* | gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191) | Serhiy Storchaka | 2024-03-01 | 1 | -30/+21 |
| | | | | | | | * Do not overwrite already rolled over files. It happened at midnight or during the DST change and caused the loss of data. * computeRollover() now always return the timestamp larger than the specified time. * Fix computation of the rollover time during the DST change. | ||||
* | gh-93205: When rotating logs with no namer specified, match whole extension ↵ | Gabriele Catania | 2024-02-21 | 1 | -19/+24 |
| | | | | (GH-93224) | ||||
* | gh-115032: Update DictConfigurator.configure_formatter() comment about `fmt` ↵ | Mariusz Felisiak | 2024-02-13 | 1 | -4/+3 |
| | | | | retry. (GH-115303) | ||||
* | gh-115233: Fix an example in the Logging Cookbook (GH-115325) | Serhiy Storchaka | 2024-02-12 | 1 | -9/+2 |
| | | | | | Also add more tests for LoggerAdapter. Also support stacklevel in LoggerAdapter._log(). | ||||
* | gh-114706: Allow QueueListener.stop() to be called more than once. (GH-114748) | Vinay Sajip | 2024-01-30 | 1 | -3/+4 |
| | |||||
* | gh-114494: Change logging docstring to bool for exec_info (GH=114558) | Tristan Pank | 2024-01-26 | 1 | -6/+6 |
| | |||||
* | gh-111615: Fix regression in QueueHandler configuration. (GH-111638) | Vinay Sajip | 2023-12-27 | 1 | -17/+19 |
| | |||||
* | gh-110875: Handle '.' properties in logging formatter configuration c… ↵ | Vinay Sajip | 2023-11-09 | 1 | -4/+4 |
| | | | | (GH-110943) | ||||
* | gh-111276: Clarify docs and comments about the role of LC_CTYPE (#111319) | Łukasz Langa | 2023-10-27 | 1 | -4/+2 |
| | | | | | | | | Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0: https://docs.python.org/2/library/string.html#deprecated-string-functions Also, fix a comment in logging about locale-specific behavior of `str.lower()`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | ||||
* | gh-109461: Update logging module lock to use context manager (#109462) | Dale Collison | 2023-09-27 | 3 | -136/+60 |
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-103384: Generalize the regex pattern `BaseConfigurator.INDEX_PATTERN` to ↵ | Peeyush Aggarwal | 2023-08-25 | 1 | -1/+1 |
| | | | | | | | allow spaces and non-alphanumeric characters in keys. (GH-103391) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend@python.org> | ||||
* | gh-76913: Add "merge extras" feature to LoggerAdapter (GH-107292) | Romuald Brunet | 2023-08-15 | 1 | -2/+16 |
| | |||||
* | gh-107710: Speed up `logging.getHandlerNames` function (#107711) | Nikita Sobolev | 2023-08-07 | 1 | -2/+1 |
| | |||||
* | gh-107028: tiny textual changes in logging docs and docstrings (GH-107029) | Jochem Boersma | 2023-07-22 | 1 | -1/+1 |
| | |||||
* | gh-102799: replace internal sys.exc_info() call by sys.exception() (#106746) | Irit Katriel | 2023-07-14 | 1 | -5/+5 |
| | |||||
* | gh-105376: Remove logging.warn() and LoggerAdapter.warn() (#106553) | Victor Stinner | 2023-07-09 | 1 | -11/+1 |
| | |||||
* | gh-106238: Handle KeyboardInterrupt during logging._acquireLock() (GH-106239) | Ariel Eizenberg | 2023-07-06 | 1 | -1/+5 |
| | | | Co-authored-by: Ariel Eizenberg <ariel.eizenberg@pagaya.com> | ||||
* | gh-105376: Remove logging.Logger.warn() method (#105377) | Victor Stinner | 2023-06-06 | 1 | -5/+0 |
| | |||||
* | gh-103606: raise RuntimeError if config file is invalid or empty (#104701) | Prince Roshan | 2023-05-20 | 1 | -2/+2 |
| | | | (this adjusts new code) raise RuntimeError if provided config file is invalid or empty, not ValueError. | ||||
* | gh-103606: Improve error message from logging.config.FileConfig (GH-103628) | Prince Roshan | 2023-05-18 | 1 | -6/+16 |
| | |||||
* | gh-103357: Add logging.Formatter defaults support to logging.config ↵ | Bar Harel | 2023-04-12 | 1 | -3/+19 |
| | | | | fileConfig and dictConfig (GH-103359) | ||||
* | gh-102799: use exception instance instead of sys.exc_info() (#102885) | Irit Katriel | 2023-03-31 | 1 | -2/+2 |
| | |||||
* | gh-99811: Use correct variable to search for time in format string (GH-99812) | cemysce | 2022-11-28 | 1 | -1/+1 |
| | | | Use correct variable to search for asctime | ||||
* | gh-98307: Add docstring and documentation for SysLogHandler.createSocket ↵ | Vinay Sajip | 2022-10-16 | 1 | -1/+8 |
| | | | | | (GH-98319) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | ||||
* | gh-90195: Unset logger disabled flag when configuring it. (GH-96530) | Vinay Sajip | 2022-09-03 | 1 | -0/+1 |
| | |||||
* | gh-89258: Add a getChildren() method to logging.Logger. (GH-96444) | Vinay Sajip | 2022-08-31 | 1 | -0/+19 |
| | | | Co-authored-by: Éric <merwok@netwok.org> | ||||
* | gh-89047: Fix msecs computation so you never end up with 1000 msecs. (GH-96340) | Vinay Sajip | 2022-08-27 | 1 | -1/+1 |
| | |||||
* | gh-92007: Handle elevation errors in NTEventLogHandler more grace… (GH-96322) | Vinay Sajip | 2022-08-27 | 1 | -1/+10 |
| | |||||
* | gh-96159: Fix significant performance degradation in logging.TimedRotat… ↵ | Duncan Grisby | 2022-08-23 | 1 | -3/+7 |
| | | | | (GH-96182) | ||||
* | gh-95804: Respect MemoryHandler.flushOnClose in logging shutdown. (GH-95857) | David Bonner | 2022-08-10 | 1 | -1/+5 |
| | |||||
* | gh-95454: Replace truthy/falsy with true/false (GH-95456) | Robert O'Shea | 2022-07-30 | 1 | -6/+6 |
| | |||||
* | bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) | Erik Montnemery | 2022-07-05 | 1 | -1/+2 |
| | |||||
* | gh-92592: Allow logging filters to return a LogRecord. (GH-92591) | Adrian Garcia Badaracco | 2022-06-07 | 1 | -10/+33 |
| |