summaryrefslogtreecommitdiffstats
path: root/Lib/logging/config.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-110875: Handle '.' properties in logging formatter configuration ↵Vinay Sajip2023-11-091-6/+6
| | | | | | correctly. (GH-110943) (GH-111914) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* [3.11] gh-103606: Improve error message from logging.config.FileConfig ↵Prince Roshan2023-05-211-6/+17
| | | | | | | | | (GH-103628) (#104687) * gh-103606: Improve error message from logging.config.FileConfig (GH-103628) (cherry picked from commit 152227b569c3a9b87fe0483706f704762ced6d75) plus backport the followup exception change fix to that in #104701
* [3.11] gh-90195: Unset logger disabled flag when configuring it. (GH-96530) ↵Vinay Sajip2022-09-031-0/+1
| | | | (GH-96532)
* 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-43731: Add an `encoding` parameter to logging.fileConfig() (GH-25273)Inada Naoki2021-04-131-2/+3
|
* bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773)Vinay Sajip2020-01-011-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-38586: setting logging.Handler .name property in fileConfig (GH-16918)Lucas Cimon2019-10-311-0/+1
|
* Updated incorrect level-setting code to use setLevel(). (GH-16325)Vinay Sajip2019-09-221-5/+6
|
* bpo-34844: logging.Formatter enhancement - Ensure style and format string ↵BNMetrics2018-10-151-1/+9
| | | | matches in logging.Formatter (GH-9703)
* bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008)Xtreak2018-07-021-4/+11
|
* Revert unneccessary changes made in bpo-30296 and apply other improvements. ↵Serhiy Storchaka2018-02-261-2/+2
| | | | (GH-2624)
* Changed lambda to str.strip in _strip_spaces in logging.config (#4332)sanjayp2017-11-151-2/+2
|
* bpo-30830: logging.config.listen() calls server_close() (#3524)Victor Stinner2017-09-131-1/+1
| | | | | | | | | | The ConfigSocketReceiver.serve_until_stopped() method from logging.config.listen() now calls server_close() (of socketserver.ThreadingTCPServer) rather than closing manually the socket. While this change has no effect yet, it will help to prevent dangling threads once ThreadingTCPServer.server_close() will join spawned threads (bpo-31233).
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-8/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-31080: Allowed logging.config.fileConfig() to accept both args and ↵Preston Landers2017-08-021-2/+4
| | | | kwargs. (GH-2979)
* bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)Jon Dufresne2017-05-181-2/+2
| | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max())
* Issue #28335: made minor improvement to implementation.Vinay Sajip2016-10-031-1/+1
|
* Closes #28335: used 'raise from' in logging configuration code.Vinay Sajip2016-10-031-16/+16
|
* Closes #21203: Updated fileConfig and dictConfig to remove inconsistencies. ↵Vinay Sajip2014-04-151-2/+8
| | | | Thanks to Jure Koren for the patch.
* Issue #20444: Reduced code duplication.Vinay Sajip2014-03-201-50/+34
|
* Issue #20558: Improved implementation of error handling.Vinay Sajip2014-03-201-12/+11
|
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-201-1/+1
|
* Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
|
* Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | ModuleNotFoundError.
* Closes #18046: Simplified logging internals relating to levels and their ↵Vinay Sajip2013-05-251-3/+3
| | | | names. Thanks to Alex Gaynor for the patch.
* Closes #17540: Merged fix from 3.3.Vinay Sajip2013-03-291-2/+4
|\
| * Issue #17540: Added style to Formatter configuration by dict.Vinay Sajip2013-03-291-2/+4
| |
* | Closes #17521: Merged fix from 3.3.Vinay Sajip2013-03-231-2/+2
|\ \ | |/
| * Issue #17521: Merged fix from 3.2.Vinay Sajip2013-03-231-2/+2
| |\
| | * Issue #17521: Corrected non-enabling of logger following two calls to ↵Vinay Sajip2013-03-231-2/+2
| | | | | | | | | | | | fileConfig().
* | | Closes #17508: Merged fix from 3.3.Vinay Sajip2013-03-221-4/+24
|\ \ \ | |/ /
| * | Issue #17508: Merged fix from 3.2.Vinay Sajip2013-03-221-4/+24
| |\ \ | | |/
| | * Issue #17508: Handled out-of-order handler configuration correctly.Vinay Sajip2013-03-221-4/+24
| | |
* | | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-1/+1
| | |
* | | Allow configuration of handler properties.Vinay Sajip2012-11-151-0/+4
| | |
* | | Closes #16110: fileConfig now accepts a pre-initialised ConfigParser instance.Vinay Sajip2012-10-091-4/+7
| | |
* | | Issue #16141: replaced old-style exception handling code in logging with the ↵Vinay Sajip2012-10-091-4/+2
| | | | | | | | | | | | modern idiom.
* | | Updated docstring for logging.config.listen().Vinay Sajip2012-10-021-2/+11
| | |
* | | Issue #15452: Added verify option for logging configuration socket listener.Vinay Sajip2012-10-021-19/+25
|/ /
* | logging: replace codecs.open with builtins.open, remove '_encoded' sort, add ↵Florent Xicluna2011-11-071-8/+4
| | | | | | | | some tests.
* | Merge 3.2Florent Xicluna2011-10-281-2/+2
|\ \ | |/
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-281-2/+2
| |
* | More test_logging coverage improvements.Vinay Sajip2011-04-261-3/+3
|/
* #Issue 11424: added equivalent fixes for dictConfig.Vinay Sajip2011-03-071-6/+5
|
* #Issue 11424: merged fix from 3.1.Vinay Sajip2011-03-071-5/+5
|\
| * Issue #11424: Fix bug in determining child loggers.Vinay Sajip2011-03-071-5/+5
| |
| * Merged revisions 86019 via svnmerge fromBrian Curtin2010-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86019 | brian.curtin | 2010-10-30 23:40:53 -0500 (Sat, 30 Oct 2010) | 2 lines Fix a ResourceWarning for an unclosed socket. ........
| * Issue #9947: logging: backported locking fix from py3k.Vinay Sajip2010-09-271-5/+7
| |
* | Issue #5412: extend configparser to support mapping accessŁukasz Langa2010-11-101-45/+25
| |