summaryrefslogtreecommitdiffstats
path: root/Lib/logging
Commit message (Collapse)AuthorAgeFilesLines
* gh-110875: Handle '.' properties in logging formatter configuration c… ↵Vinay Sajip2023-11-091-4/+4
| | | | (GH-110943)
* gh-111276: Clarify docs and comments about the role of LC_CTYPE (#111319)Łukasz Langa2023-10-271-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 Collison2023-09-273-136/+60
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-103384: Generalize the regex pattern `BaseConfigurator.INDEX_PATTERN` to ↵Peeyush Aggarwal2023-08-251-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 Brunet2023-08-151-2/+16
|
* gh-107710: Speed up `logging.getHandlerNames` function (#107711)Nikita Sobolev2023-08-071-2/+1
|
* gh-107028: tiny textual changes in logging docs and docstrings (GH-107029)Jochem Boersma2023-07-221-1/+1
|
* gh-102799: replace internal sys.exc_info() call by sys.exception() (#106746)Irit Katriel2023-07-141-5/+5
|
* gh-105376: Remove logging.warn() and LoggerAdapter.warn() (#106553)Victor Stinner2023-07-091-11/+1
|
* gh-106238: Handle KeyboardInterrupt during logging._acquireLock() (GH-106239)Ariel Eizenberg2023-07-061-1/+5
| | | Co-authored-by: Ariel Eizenberg <ariel.eizenberg@pagaya.com>
* gh-105376: Remove logging.Logger.warn() method (#105377)Victor Stinner2023-06-061-5/+0
|
* gh-103606: raise RuntimeError if config file is invalid or empty (#104701)Prince Roshan2023-05-201-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 Roshan2023-05-181-6/+16
|
* gh-103357: Add logging.Formatter defaults support to logging.config ↵Bar Harel2023-04-121-3/+19
| | | | fileConfig and dictConfig (GH-103359)
* gh-102799: use exception instance instead of sys.exc_info() (#102885)Irit Katriel2023-03-311-2/+2
|
* gh-99811: Use correct variable to search for time in format string (GH-99812)cemysce2022-11-281-1/+1
| | | Use correct variable to search for asctime
* gh-98307: Add docstring and documentation for SysLogHandler.createSocket ↵Vinay Sajip2022-10-161-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 Sajip2022-09-031-0/+1
|
* gh-89258: Add a getChildren() method to logging.Logger. (GH-96444)Vinay Sajip2022-08-311-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 Sajip2022-08-271-1/+1
|
* gh-92007: Handle elevation errors in NTEventLogHandler more grace… (GH-96322)Vinay Sajip2022-08-271-1/+10
|
* gh-96159: Fix significant performance degradation in logging.TimedRotat… ↵Duncan Grisby2022-08-231-3/+7
| | | | (GH-96182)
* gh-95804: Respect MemoryHandler.flushOnClose in logging shutdown. (GH-95857)David Bonner2022-08-101-1/+5
|
* gh-95454: Replace truthy/falsy with true/false (GH-95456)Robert O'Shea2022-07-301-6/+6
|
* bpo-46755: Don't log stack info twice in QueueHandler (GH-31355)Erik Montnemery2022-07-051-1/+2
|
* gh-92592: Allow logging filters to return a LogRecord. (GH-92591)Adrian Garcia Badaracco2022-06-071-10/+33
|
* gh-93162: Add ability to configure QueueHandler/QueueListener together ↵Vinay Sajip2022-06-073-12/+105
| | | | | | | (GH-93269) Also, provide getHandlerByName() and getHandlerNames() APIs. Closes #93162.
* [doc] Correct a grammatical error in a docstring. (GH-93441)Colin Delahunty2022-06-041-1/+1
|
* gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH-93193)jackh-ncl2022-05-261-3/+18
|
* Delete outdated comment in logging module (#31117)Thomas Miedema2022-05-021-2/+0
| | | | | | The root logger is now accessible via its name, see https://github.com/python/cpython/pull/15077 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92128: Add `__class_getitem__` to `logging.LoggerAdapter` and ↵Alex Waygood2022-05-021-0/+5
| | | | | `logging.StreamHandler` (#92129) Closes #92128
* bpo-45171: Remove tests of deprecated logger.warn(). (GH-32139)Jouke Witteveen2022-03-271-1/+1
|
* bpo-45171: Fix stacklevel handling in logging. (GH-28287)Jouke Witteveen2022-03-271-32/+35
|
* bpo-46557: Log captured warnings without format string (GH-30975)Michael P. Nitowski2022-03-151-1/+3
|
* bpo-41906: Accept built filters in dictConfig (GH-30756)Mario Corchero2022-01-241-1/+5
| | | | | | | When configuring the logging stack, accept already built filters (or just callables) in the filters array of loggers and handlers. This facilitates passing quick callables as filters. Automerge-Triggered-By: GH:vsajip
* bpo-46332: use raise..from instead of assigning __cause__ and raising (GH-30517)Irit Katriel2022-01-101-5/+2
|
* bpo-46063: Improve algorithm for computing which rolled-over log file… ↵Vinay Sajip2021-12-141-3/+16
| | | | (GH-30093)
* bpo-45628: Check all parts of the suffix for an extension match. (GH-29310)Vinay Sajip2021-10-291-2/+7
|
* bpo-45401: Change shouldRollover() methods to only rollover regular f… ↵Vinay Sajip2021-10-101-4/+10
| | | | | | | (GH-28822) …iles. Also changed some historical return values from 1 -> True and 0 -> False.
* bpo-44291: Fix reconnection in logging.handlers.SysLogHandler (GH-26490)Kirill Pinchuk2021-08-051-25/+38
|
* bpo-44753: Don't use logfile extension when determining old files to be ↵Vinay Sajip2021-07-301-1/+2
| | | | deleted (GH-27475)
* bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378)Mariusz Felisiak2021-07-261-2/+2
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-42378: fixed log truncation on logging shutdown (GH-27310)andrei kulakov2021-07-251-2/+11
| | | Automerge-Triggered-By: GH:vsajip
* bpo-44473: Update docstring and documentation for QueueHandler.prepar… ↵Vinay Sajip2021-07-151-4/+7
| | | | | (GH-27140) …e().
* bpo-43858: Add logging.getLevelNamesMapping() (GH-26459)andrei kulakov2021-06-031-1/+4
| | | Added a function that returns a copy of a dict of logging levels.
* bpo-44222: Improve _removeHandlerRef() for a very long _handlerList (GH-26325)Yonatan Goldschmidt2021-05-251-2/+3
| | | | | | The list lookups become a big burden for very long lists. This patch changes the "happy flow" path of 2 lookups into 1 lookup. Automerge-Triggered-By: GH:vsajip
* bpo-43731: Add an `encoding` parameter to logging.fileConfig() (GH-25273)Inada Naoki2021-04-131-2/+3
|
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189)Inada Naoki2021-04-062-2/+11
| | | | | | | | | | | | * 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
* bpo-43353: Document that logging.getLevelName() accepts string ↵Mariusz Felisiak2021-03-081-2/+6
| | | | | | | representation of logging level. (GH-24693) [bpo-43353]() Automerge-Triggered-By: GH:vsajip
* bpo-42644: Validate values in logging.disable() (#23786)Matthias Bussonnier2020-12-161-0/+8
| | | | | | | | | | | | | | | | | | | * bpo-42644: Validate values in logging.disable() Technically make the value of manager a property that checks and convert values assigned to it properly. This has the side effect of making `logging.disable` also accept strings representing the various level of warnings. We want to validate the type of the disable attribute at assignment time, as it is later compared to other levels when emitting warnings and would generate a `TypeError: '>=' not supported between ....` in a different part of the code base, which can make it difficult to track down. When assigned an incorrect value; it will raise a TypeError when the wrong type, or ValueError if an invalid str. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>