Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | gh-93162: Add ability to configure QueueHandler/QueueListener together ↵ | Vinay Sajip | 2022-06-07 | 3 | -12/+105 |
| | | | | | | | (GH-93269) Also, provide getHandlerByName() and getHandlerNames() APIs. Closes #93162. | ||||
* | [doc] Correct a grammatical error in a docstring. (GH-93441) | Colin Delahunty | 2022-06-04 | 1 | -1/+1 |
| | |||||
* | gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH-93193) | jackh-ncl | 2022-05-26 | 1 | -3/+18 |
| | |||||
* | Delete outdated comment in logging module (#31117) | Thomas Miedema | 2022-05-02 | 1 | -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 Waygood | 2022-05-02 | 1 | -0/+5 |
| | | | | | `logging.StreamHandler` (#92129) Closes #92128 | ||||
* | bpo-45171: Remove tests of deprecated logger.warn(). (GH-32139) | Jouke Witteveen | 2022-03-27 | 1 | -1/+1 |
| | |||||
* | bpo-45171: Fix stacklevel handling in logging. (GH-28287) | Jouke Witteveen | 2022-03-27 | 1 | -32/+35 |
| | |||||
* | bpo-46557: Log captured warnings without format string (GH-30975) | Michael P. Nitowski | 2022-03-15 | 1 | -1/+3 |
| | |||||
* | bpo-41906: Accept built filters in dictConfig (GH-30756) | Mario Corchero | 2022-01-24 | 1 | -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 Katriel | 2022-01-10 | 1 | -5/+2 |
| | |||||
* | bpo-46063: Improve algorithm for computing which rolled-over log file… ↵ | Vinay Sajip | 2021-12-14 | 1 | -3/+16 |
| | | | | (GH-30093) | ||||
* | bpo-45628: Check all parts of the suffix for an extension match. (GH-29310) | Vinay Sajip | 2021-10-29 | 1 | -2/+7 |
| | |||||
* | bpo-45401: Change shouldRollover() methods to only rollover regular f… ↵ | Vinay Sajip | 2021-10-10 | 1 | -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 Pinchuk | 2021-08-05 | 1 | -25/+38 |
| | |||||
* | bpo-44753: Don't use logfile extension when determining old files to be ↵ | Vinay Sajip | 2021-07-30 | 1 | -1/+2 |
| | | | | deleted (GH-27475) | ||||
* | bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378) | Mariusz Felisiak | 2021-07-26 | 1 | -2/+2 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-42378: fixed log truncation on logging shutdown (GH-27310) | andrei kulakov | 2021-07-25 | 1 | -2/+11 |
| | | | Automerge-Triggered-By: GH:vsajip | ||||
* | bpo-44473: Update docstring and documentation for QueueHandler.prepar… ↵ | Vinay Sajip | 2021-07-15 | 1 | -4/+7 |
| | | | | | (GH-27140) …e(). | ||||
* | bpo-43858: Add logging.getLevelNamesMapping() (GH-26459) | andrei kulakov | 2021-06-03 | 1 | -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 Goldschmidt | 2021-05-25 | 1 | -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 Naoki | 2021-04-13 | 1 | -2/+3 |
| | |||||
* | bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) | Inada Naoki | 2021-04-06 | 2 | -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 Felisiak | 2021-03-08 | 1 | -2/+6 |
| | | | | | | | representation of logging level. (GH-24693) [bpo-43353]() Automerge-Triggered-By: GH:vsajip | ||||
* | bpo-42644: Validate values in logging.disable() (#23786) | Matthias Bussonnier | 2020-12-16 | 1 | -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> | ||||
* | bpo-26789: Fix logging.FileHandler._open() at exit (GH-23053) | Victor Stinner | 2020-11-02 | 1 | -2/+7 |
| | | | | | | | | | | | | | | | | | | | The logging.FileHandler class now keeps a reference to the builtin open() function to be able to open or reopen the file during Python finalization. Fix errors like: Exception ignored in: (...) Traceback (most recent call last): (...) File ".../logging/__init__.py", line 1463, in error File ".../logging/__init__.py", line 1577, in _log File ".../logging/__init__.py", line 1587, in handle File ".../logging/__init__.py", line 1649, in callHandlers File ".../logging/__init__.py", line 948, in handle File ".../logging/__init__.py", line 1182, in emit File ".../logging/__init__.py", line 1171, in _open NameError: name 'open' is not defined | ||||
* | bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) | Necdet Can Atesman | 2020-10-16 | 1 | -2/+2 |
| | |||||
* | Delete extra 'the' from `Formatter` class docstring (GH-22530) | Hansraj Das | 2020-10-04 | 1 | -1/+1 |
| | |||||
* | Fix logging error message (GH-22410) | Eric Larson | 2020-09-25 | 1 | -1/+2 |
| | | | | | Same changes as #22276 squashed to a single commit. Just hoping to get Travis to cooperate by opening a new PR... Automerge-Triggered-By: @vsajip | ||||
* | bpo-41503: Fix race between setTarget and flush in ↵ | Irit Katriel | 2020-08-16 | 1 | -1/+5 |
| | | | | logging.handlers.MemoryHandler (GH-21765) | ||||
* | bpo-40884: Added defaults parameter for logging.Formatter (GH-20668) | Bar Harel | 2020-06-18 | 1 | -8/+22 |
| | | | | | Docs and tests are underway. Automerge-Triggered-By: @vsajip | ||||
* | bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() ↵ | Rémi Lapeyre | 2020-06-15 | 1 | -2/+10 |
| | | | | | (GH-20563) Automerge-Triggered-By: @vsajip | ||||
* | bpo-40756: Default second argument of LoggerAdapter.__init__ to None (GH-20362) | Arturo Escaip | 2020-05-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | The 'extra' argument is not always used by custom logger adapters. For example: ```python class IndentAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): indent = kwargs.pop(indent, 1) return ' ' * indent + msg, kwargs ``` It is cleaner and friendlier to default the 'extra' argument to None instead of either forcing the subclasses of LoggerAdapter to pass a None value directly or to override the constructor. This change is backward compatible because existing calls to `LoggerAdapter.__init__` are already passing a value for the second argument. Automerge-Triggered-By: @vsajip | ||||
* | bpo-40300: Allow empty logging.Formatter.default_msec_format. (GH-19551) | Mariusz Felisiak | 2020-04-17 | 1 | -2/+3 |
| | |||||
* | bpo-40091: Fix a hang at fork in the logging module (GH-19416) | Victor Stinner | 2020-04-13 | 1 | -12/+12 |
| | | | | | | | Fix a hang at fork in the logging module: the new private _at_fork_reinit() method is now used to reinitialize locks at fork in the child process. The createLock() method is no longer used at fork. | ||||
* | bpo-39826: add getConnection() hook to logging HTTPHandler (GH-18745) | l0rb | 2020-03-04 | 1 | -5/+16 |
| | |||||
* | bpo-39292: Add missing syslog facility codes. (GH-17945) | Vinay Sajip | 2020-01-10 | 1 | -21/+28 |
| | |||||
* | bpo-39198: Ensure logging global lock is released on exception in ↵ | Derek Brown | 2020-01-07 | 1 | -6/+9 |
| | | | | isEnabledFor (GH-17689) | ||||
* | bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) | Vinay Sajip | 2020-01-01 | 1 | -1/+1 |
| | | | | | | | This uses the heuristic of assuming a named tuple is a subclass of tuple with a _fields attribute. This change means that contents of a named tuple wouldn't be converted - if a user wants to have ConvertingTuple functionality from a namedtuple, they will have to implement it themselves. | ||||
* | bpo-38781: Clear buffer in MemoryHandler flush (GH-17132) | Daniel Andersson | 2019-11-13 | 1 | -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. |