256 Commits

Author SHA1 Message Date
Xiang Zhang
3ef3bcbe38 bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1904) (#1676) 2017-06-01 22:22:18 +08:00
Serhiy Storchaka
994f04dbf5 Issue #28998: More APIs now support longs as well as ints. 2016-12-27 15:09:36 +02:00
Vinay Sajip
82ea0f9517 Closes #25664: handled logger names in Unicode. 2015-12-26 12:21:47 +00:00
Gregory P. Smith
64707923be Issue21709: Call os.path.normcase when setting _srcfile for compatibility
with what findCaller() does when running on non-POSIX platforms.

(alternatively: the normcase calls in both places could be eliminated, but that
touches more code and that refactoring hasn't even been done in 3 yet...)
2015-10-22 13:12:20 -07:00
Gregory P. Smith
7427a79e12 Issue #21709: Fix the logging module to not depend upon __file__ being set
properly to get the filename of its caller from the stack.  This allows it
to work if run in a frozen or embedded environment where the module's
.__file__ attribute does not match its code object's .co_filename.

This same much simpler always correct approach has already been deployed and
used widely in Python 3.4 per the issue referenced above.
2015-10-22 13:09:50 -07:00
Serhiy Storchaka
1aa2c0f073 Issue #23865: close() methods in multiple modules now are idempotent and more
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:10 +03:00
Vinay Sajip
a79d6f40df Brought excluded code into the scope of a try block in SysLogHandler.emit(). 2014-11-01 19:56:13 +00:00
Vinay Sajip
0746b00288 Issue #22646: Accept list as well as tuple to support initialisation via dictConfig(). 2014-10-17 08:42:57 +01:00
Vinay Sajip
ce817cb36d Issue #21742: Set stream to None after closing. 2014-06-14 10:19:54 +01:00
Vinay Sajip
ab2db5815c Issue #21608: Updated HTTPHandler documentation. 2014-05-30 18:46:02 +01:00
Vinay Sajip
5aad46e5c3 Issue #21172: isinstance check relaxed from dict to collections.Mapping. 2014-04-10 07:07:59 +01:00
Vinay Sajip
66d8dbeacf Issue #21149: Improved thread-safety in logging cleanup during interpreter shutdown. 2014-04-04 10:47:53 +01:00
Vinay Sajip
79ce12e0fb Issue #20558: Improved implementation of error handling. 2014-02-11 11:32:40 +00:00
Vinay Sajip
9cdf2d0338 Issue #20444: Reduced code duplication. Thanks to dongwm for the report and patch. 2014-01-30 20:22:01 +00:00
Vinay Sajip
47fe4684ff Issue #19523: Closed FileHandler leak which occurred when delay was set. 2013-11-15 20:39:33 +00:00
Victor Stinner
a5cd255a7c Close #19267: Fix support of multibyte encoding (ex: UTF-16) in the logging
module.
2013-10-15 23:36:56 +02:00
Vinay Sajip
fb03696fda Issue #18941: Respected delay when doing rollover. 2013-09-06 10:24:08 +01:00
Vinay Sajip
6d7e29651c Issue #18940: Handled low-volume logging when delay is True. 2013-09-06 10:09:45 +01:00
Vinay Sajip
bb6b51ca25 Issue #17981: Closed socket on error in SysLogHandler. 2013-05-16 22:47:47 +01:00
Vinay Sajip
4dc385b4e3 Issue #17795: Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets. 2013-04-22 09:58:51 +01:00
Vinay Sajip
1e76e8643b Issue #12718: Set importer on instance if Python function, to avoid bad interaction with winpdb. 2013-03-25 23:37:41 +00:00
Vinay Sajip
bb2dad8915 Issue #17521: Corrected non-enabling of logger following two calls to fileConfig(). 2013-03-23 11:18:10 +00:00
Vinay Sajip
8651a51c92 Issue #17508: Handled out-of-order handler configuration correctly. 2013-03-22 15:19:24 +00:00
Vinay Sajip
51b55517a1 Issue #9501: Improved shutdown handling to deal with module attributes correctly. 2013-01-15 17:55:13 +00:00
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00