summaryrefslogtreecommitdiffstats
path: root/Lib/logging
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-21149: Workaround a GC finalization bug in logging. (#4368)Gregory P. Smith2017-11-111-5/+12
| | | | | | | | | | | | * Work around a GC process finalization bug. The logging RLock instances may exist but the threading.RLock class itself has already been emptied causing a Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef ..." to be printed to stderr on process termination. This catches that exception and ignores it because there is absolutely nothing we can or should do about it from the context of a weakref handler called from the gc context.
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-011-6/+21
| | | | (#1904) (#1676)
* Issue #28998: More APIs now support longs as well as ints.Serhiy Storchaka2016-12-271-1/+1
|
* Closes #25664: handled logger names in Unicode.Vinay Sajip2015-12-261-1/+9
|
* Issue21709: Call os.path.normcase when setting _srcfile for compatibilityGregory P. Smith2015-10-221-1/+1
| | | | | | | 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...)
* Issue #21709: Fix the logging module to not depend upon __file__ being setGregory P. Smith2015-10-221-12/+6
| | | | | | | | | 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.
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-102-17/+27
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Brought excluded code into the scope of a try block in SysLogHandler.emit().Vinay Sajip2014-11-011-11/+11
|
* Issue #22646: Accept list as well as tuple to support initialisation via ↵Vinay Sajip2014-10-171-2/+2
| | | | dictConfig().
* Issue #21742: Set stream to None after closing.Vinay Sajip2014-06-141-0/+1
|
* Issue #21608: Updated HTTPHandler documentation.Vinay Sajip2014-05-301-1/+1
|
* Issue #21172: isinstance check relaxed from dict to collections.Mapping.Vinay Sajip2014-04-101-2/+8
|
* Issue #21149: Improved thread-safety in logging cleanup during interpreter ↵Vinay Sajip2014-04-041-10/+12
| | | | shutdown.
* Issue #20558: Improved implementation of error handling.Vinay Sajip2014-02-111-27/+30
|
* Issue #20444: Reduced code duplication. Thanks to dongwm for the report and ↵Vinay Sajip2014-01-301-52/+36
| | | | patch.
* Issue #19523: Closed FileHandler leak which occurred when delay was set.Vinay Sajip2013-11-151-1/+3
|
* Close #19267: Fix support of multibyte encoding (ex: UTF-16) in the loggingVictor Stinner2013-10-151-1/+1
| | | | module.
* Issue #18941: Respected delay when doing rollover.Vinay Sajip2013-09-062-9/+5
|
* Issue #18940: Handled low-volume logging when delay is True.Vinay Sajip2013-09-061-2/+6
|
* Issue #17981: Closed socket on error in SysLogHandler.Vinay Sajip2013-05-161-0/+1
|
* Issue #17795: Reverted backwards-incompatible change in SysLogHandler with ↵Vinay Sajip2013-04-221-6/+29
| | | | Unix domain sockets.
* Issue #12718: Set importer on instance if Python function, to avoid bad ↵Vinay Sajip2013-03-251-0/+6
| | | | interaction with winpdb.
* Issue #17521: Corrected non-enabling of logger following two calls to ↵Vinay Sajip2013-03-231-2/+2
| | | | fileConfig().
* Issue #17508: Handled out-of-order handler configuration correctly.Vinay Sajip2013-03-221-4/+24
|
* Issue #9501: Improved shutdown handling to deal with module attributes ↵Vinay Sajip2013-01-151-1/+2
| | | | correctly.
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | Patch by Serhiy Storchaka.
* Issue #16244: Remove file mode overrides.Vinay Sajip2012-10-161-2/+0
|
* Issue #16168: Use specified socket type for domain sockets in SysLogHandler.Vinay Sajip2012-10-091-8/+2
|
* Closes #15710: accept long in _checkLevel.Vinay Sajip2012-08-291-1/+1
|
* Issue #15541: Correct anomaly in logging.exception. Thanks to Ned Batchelder ↵Vinay Sajip2012-08-041-4/+6
| | | | for the report.
* Issue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita ↵Vinay Sajip2012-06-251-1/+5
| | | | for the patch.
* Issue #14632: Updated WatchedFileHandler to deal with race condition. Thanks ↵Vinay Sajip2012-04-241-19/+29
| | | | to John Mulligan for the problem report and patch.
* Issue #14452: remove BOM insertion code.Vinay Sajip2012-04-161-2/+0
|
* Closes #14436: Convert msg + args to string before pickling.Vinay Sajip2012-03-291-2/+9
|
* Closes #14314: backported fix.Vinay Sajip2012-03-231-1/+2
|
* Closes #14267: Corrected computation of rollover filename.Vinay Sajip2012-03-131-6/+15
|
* Fix added for recent changes in non-threading environments.Vinay Sajip2012-02-232-7/+28
|
* Updated comments.Vinay Sajip2012-02-232-5/+4
|
* logging: Added locking in flush() and close() handler methods. Thanks to ↵Vinay Sajip2012-02-232-22/+29
| | | | Fayaz Yusuf Khan for the suggestion.
* Closes #13807: Now checks for sys.stderr being there before writing to it.Vinay Sajip2012-01-201-1/+1
|
* Closes #13361: Raise correct exception type.Vinay Sajip2011-11-071-1/+1
|
* Closes #13661: Check added for type of logger name.Vinay Sajip2011-11-071-0/+2
|
* Closes #13356. Thanks to Florent Xicluna for the patch.Vinay Sajip2011-11-072-2/+5
|
* Corrected typo in comment.Vinay Sajip2011-10-251-1/+1
|
* Closes #13232: Handle multiple encodings in exception logging.Vinay Sajip2011-10-241-2/+6
|
* Issue #11444: Merge fix from 2.6.Vinay Sajip2011-03-081-0/+3
|\
| * Issue #11444: Lock handlers while flushing/closing during shutdown.Vinay Sajip2011-03-081-0/+3
| |
* | #Issue 11424: merged fix from 2.6.Vinay Sajip2011-03-071-5/+5
|\ \ | |/
| * Issue #11424: Fix bug in determining child loggers.Vinay Sajip2011-03-071-5/+5
| |
| * Fixed #9310: backported logging fix from 2.7.Vinay Sajip2010-07-201-1/+4
| |