Miss Islington (bot)
1d5a7e5694
bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773) (GH-17785)
...
(cherry picked from commit 46abfc1416
)
2020-01-01 20:06:52 +00:00
Miss Islington (bot)
fe9089a08b
Updated incorrect level-setting code to use setLevel(). (GH-16325) (GH-16327)
...
(cherry picked from commit 1d094af716
)
2019-09-22 04:26:37 +01:00
BNMetrics
18fb1fb943
bpo-34844: logging.Formatter enhancement - Ensure style and format string matches in logging.Formatter (GH-9703)
2018-10-15 19:41:36 +01:00
Xtreak
087570af6d
bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008)
2018-07-02 09:57:46 +01:00
Serhiy Storchaka
3f2e6f15d6
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
2018-02-26 16:50:11 +02:00
sanjayp
2ae4ad7ca4
Changed lambda to str.strip in _strip_spaces in logging.config ( #4332 )
2017-11-15 09:28:11 +00:00
Victor Stinner
97d7e65dfe
bpo-30830: logging.config.listen() calls server_close() ( #3524 )
...
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).
2017-09-13 01:44:08 -07: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
Preston Landers
6ea56d2ebc
bpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH-2979)
2017-08-02 21:44:28 +01:00
Jon Dufresne
3972628de3
bpo-30296 Remove unnecessary tuples, lists, sets, and dicts ( #1489 )
...
* 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())
2017-05-18 07:35:54 -07:00
Vinay Sajip
b74034351f
Issue #28335 : made minor improvement to implementation.
2016-10-03 19:50:56 +01:00
Vinay Sajip
aa27582f35
Closes #28335 : used 'raise from' in logging configuration code.
2016-10-03 19:45:50 +01:00
Vinay Sajip
ddbd2ee6e5
Closes #21203 : Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure Koren for the patch.
2014-04-15 14:24:53 +01:00
Vinay Sajip
b1698d4030
Issue #20444 : Reduced code duplication.
2014-03-20 13:14:39 +00:00
Vinay Sajip
71dcb28d1c
Issue #20558 : Improved implementation of error handling.
2014-03-20 13:03:17 +00:00
Victor Stinner
7fa767e517
Issue #20976 : pyflakes: Remove unused imports
2014-03-20 09:16:38 +01:00
Brett Cannon
cd171c8e92
Issue #18200 : Back out usage of ModuleNotFoundError (8d28d44f3a9a)
2013-07-04 17:43:24 -04:00
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
...
ModuleNotFoundError.
2013-06-13 20:57:26 -04:00
Vinay Sajip
3b84eae03e
Closes #18046 : Simplified logging internals relating to levels and their names. Thanks to Alex Gaynor for the patch.
2013-05-25 03:20:34 -07:00
Vinay Sajip
04cc55a14c
Closes #17540 : Merged fix from 3.3.
2013-03-29 17:59:15 +00:00
Vinay Sajip
28421c6f62
Issue #17540 : Added style to Formatter configuration by dict.
2013-03-29 17:56:54 +00:00
Vinay Sajip
8ec95b81d5
Closes #17521 : Merged fix from 3.3.
2013-03-23 11:23:05 +00:00
Vinay Sajip
9b862b9d66
Issue #17521 : Merged fix from 3.2.
2013-03-23 11:22:00 +00:00
Vinay Sajip
68b4cc87cd
Issue #17521 : Corrected non-enabling of logger following two calls to fileConfig().
2013-03-23 11:18:45 +00:00
Vinay Sajip
5a63fe6813
Closes #17508 : Merged fix from 3.3.
2013-03-22 15:27:52 +00:00
Vinay Sajip
340a4bb2fe
Issue #17508 : Merged fix from 3.2.
2013-03-22 15:23:13 +00:00
Vinay Sajip
3f885b5432
Issue #17508 : Handled out-of-order handler configuration correctly.
2013-03-22 15:19:54 +00:00
Andrew Svetlov
0832af6628
Issue #16717 : get rid of socket.error, replace with OSError
2012-12-18 23:10:48 +02:00
Vinay Sajip
8d27023a7e
Allow configuration of handler properties.
2012-11-15 14:20:18 +00:00
Vinay Sajip
cf9e2f2420
Closes #16110 : fileConfig now accepts a pre-initialised ConfigParser instance.
2012-10-09 09:06:03 +01:00
Vinay Sajip
8cf4eb1463
Issue #16141 : replaced old-style exception handling code in logging with the modern idiom.
2012-10-09 08:06:13 +01:00
Vinay Sajip
3e763dadde
Updated docstring for logging.config.listen().
2012-10-02 16:15:33 +01:00
Vinay Sajip
4ded5512d7
Issue #15452 : Added verify option for logging configuration socket listener.
2012-10-02 15:56:16 +01:00
Florent Xicluna
5252f9faee
logging: replace codecs.open with builtins.open, remove '_encoded' sort, add some tests.
2011-11-07 19:43:05 +01:00
Florent Xicluna
aabbda5354
Merge 3.2
2011-10-28 14:52:29 +02:00
Florent Xicluna
5d1155c08e
Closes #13258 : Use callable() built-in in the standard library.
2011-10-28 14:45:05 +02:00
Vinay Sajip
985ef87ea0
More test_logging coverage improvements.
2011-04-26 19:34:04 +01:00
Vinay Sajip
9f9991c2f5
#Issue 11424: added equivalent fixes for dictConfig.
2011-03-07 18:02:57 +00:00
Vinay Sajip
e783553daa
#Issue 11424: merged fix from 3.1.
2011-03-07 17:59:50 +00:00
Vinay Sajip
3f84b07816
Issue #11424 : Fix bug in determining child loggers.
2011-03-07 17:49:33 +00:00
Łukasz Langa
26d513cf2f
Issue #5412 : extend configparser to support mapping access
2010-11-10 18:57:39 +00:00
Brian Curtin
d9f3f08b8c
Merged revisions 86019 via svnmerge from
...
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.
........
2010-10-31 04:42:40 +00:00
Brian Curtin
6ff2a7d121
Fix a ResourceWarning for an unclosed socket.
2010-10-31 04:40:53 +00:00
Vinay Sajip
805ddaa3da
Issue #9947 : logging: backported locking fix from py3k.
2010-09-27 21:51:36 +00:00
Vinay Sajip
9fdd11b3b6
Issue #9947 : logging: Fixed locking bug in stopListening.
2010-09-25 17:48:25 +00:00
Vinay Sajip
ec1cd1c475
logging: merged duplicated code in fileConfig and dictConfig paths.
2010-08-30 19:02:14 +00:00
Florent Xicluna
dc692740a8
Replace the deprecated ConfigParser.readfp() method, and fix the incomplete merge in r82293.
2010-08-15 20:16:27 +00:00
Benjamin Peterson
a82addb5f3
Merged revisions 80712,81651 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80712 | vinay.sajip | 2010-05-03 10:11:53 -0500 (Mon, 03 May 2010) | 1 line
Issue #8576 : logging updated to remove usage of find_unused_port().
........
r81651 | vinay.sajip | 2010-06-02 05:05:31 -0500 (Wed, 02 Jun 2010) | 1 line
Logging: improved error reporting for BaseConfigurator.resolve().
........
2010-06-27 20:54:28 +00:00
Brett Cannon
c236850ad1
Calling __import__ as a method technically works, but really should be wrapped
...
in a staticmethod. This is important for when __import__ is set to a function
defined in Python instead of C.
2010-06-12 00:39:28 +00:00
Benjamin Peterson
22005fc5ba
Merged revisions 79279,79284,79293,79373,79376,79379,79876,79888 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79279 | vinay.sajip | 2010-03-22 07:33:08 -0500 (Mon, 22 Mar 2010) | 1 line
Issue #8200 : logging: Handle errors when multiprocessing is not fully loaded when logging occurs.
........
r79284 | vinay.sajip | 2010-03-22 08:02:28 -0500 (Mon, 22 Mar 2010) | 1 line
Issue #8201 : logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
........
r79293 | vinay.sajip | 2010-03-22 10:29:01 -0500 (Mon, 22 Mar 2010) | 1 line
logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter.
........
r79373 | vinay.sajip | 2010-03-24 09:31:21 -0500 (Wed, 24 Mar 2010) | 1 line
logging: Added LOG_FTP for SysLogHandler and updated documentation.
........
r79376 | vinay.sajip | 2010-03-24 10:10:40 -0500 (Wed, 24 Mar 2010) | 1 line
logging: Documentation tweak.
........
r79379 | vinay.sajip | 2010-03-24 12:36:35 -0500 (Wed, 24 Mar 2010) | 1 line
logging: Updated SysLogHandler documentation.
........
r79876 | vinay.sajip | 2010-04-06 17:32:37 -0500 (Tue, 06 Apr 2010) | 1 line
Issue #8327 : logging: Clarification of propagation functionality in documentation.
........
r79888 | vinay.sajip | 2010-04-07 04:40:52 -0500 (Wed, 07 Apr 2010) | 1 line
Issue #8331 : logging: fixed some grammatical errors in documentation.
........
2010-04-11 16:25:06 +00:00