summaryrefslogtreecommitdiffstats
path: root/Lib/logging/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters ↵Miss Islington (bot)2017-10-191-1/+5
| | | | | | | | | | | | | | (GH-4044) (GH-4050) This used to be the case on Python 2. Commit 212b590e118e3650b596917021ed9612a918180b changed the implementation for Python 3, making the `log()` method of LogAdapter call `logger._log()` directly. This makes nested log adapters not execute their ``process()`` method. This patch fixes the issue. Also, now proxying `name`, too, to make `repr()` work with nested log adapters. New tests added. (cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)
* [3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable ↵Miss Islington (bot)2017-10-191-1/+1
| | | | | | | (GH-4042) (#4043) Due to a bug in the initial fix, the setter was in fact creating a different property. This is now fixed. (cherry picked from commit 0b6a118a45ac2eded1348fea6ed300d5651f7471)
* [3.6] bpo-31457: Allow for nested LoggerAdapter objects (GH-3551) (#3576)Miss Islington (bot)2017-09-141-0/+21
| | | | | | | Some of the proxied methods use internal Logger state which isn't proxied, causing failures if an adapter is applied to another adapter. This commit fixes the issue, adds a new test for the use case. (cherry picked from commit 1bbd482bcf6ea36bfe488f868810ffe110238ae1)
* Issue #292Merged fixes from 3.5.Vinay Sajip2017-01-111-3/+8
|\
| * Issue #29220: Improved fix and test.Vinay Sajip2017-01-111-3/+8
| |
| * Fixes #27937: optimise code used in all logging calls.Vinay Sajip2016-09-031-4/+5
| |
* | Closes #27935: returned numeric value for 'FATAL' logging level.Vinay Sajip2016-09-031-0/+1
| |
* | Fixes #27937: optimise code used in all logging calls.Vinay Sajip2016-09-031-2/+3
| |
* | Closes #27650: Implemented repr methods for logging objects.Vinay Sajip2016-08-061-0/+27
| |
* | Closes #27493: accepted Path objects in file handlers for logging.Vinay Sajip2016-07-221-2/+4
| |
* | merge with 3.5Georg Brandl2016-02-251-2/+2
|\ \ | |/
| * Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak.Georg Brandl2016-02-251-2/+2
| |
* | Issue #23883: Add missing APIs to __all__; patch by Jacek KołodziejMartin Panter2015-11-141-2/+3
|/
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-8/+13
|\ | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-8/+13
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | Issue #23207: merged fix from 3.4.Vinay Sajip2015-03-181-1/+1
|\ \ | |/
| * Issue #23207: Improved kwarg validation.Vinay Sajip2015-03-181-1/+1
| |
* | Closes #23207: logging.basicConfig() now does additional validation of its ↵Vinay Sajip2015-01-231-8/+11
|\ \ | |/ | | | | arguments.
| * Issue #23207: logging.basicConfig() now does additional validation of its ↵Vinay Sajip2015-01-231-8/+11
| | | | | | | | arguments.
* | Closes #21980: Added a __repr__ for LogRecord.Vinay Sajip2015-01-061-2/+4
| |
* | Closes #23151: Removed unnecessary initialization.Vinay Sajip2015-01-061-2/+0
| |
* | Closes #20537: logging methods now accept an exception instance as well as a ↵Vinay Sajip2014-09-141-10/+9
|/ | | | Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
* Issue #22386: fixed regression.Vinay Sajip2014-09-111-1/+2
|
* Issue #21709: Improved implementation to cover the frozen module case.Vinay Sajip2014-06-121-28/+34
|
* Issue #21709: Remove references to __file__ when part of a frozen application.Vinay Sajip2014-06-111-2/+2
|
* Issue #21172: isinstance check relaxed from dict to collections.Mapping.Vinay Sajip2014-04-101-2/+9
|
* Issue #21149: Improved thread-safety in logging cleanup during interpreter ↵Vinay Sajip2014-04-041-8/+9
| | | | shutdown.
* Closes #20918: Added handling for exceptions during fallback output of ↵Vinay Sajip2014-03-141-4/+12
| | | | logging exceptions.
* Closes #20242: Merged fix from 3.3.Vinay Sajip2014-01-131-7/+10
|\
| * Issue #20242: Fixed basicConfig() format strings for the alternative ↵Vinay Sajip2014-01-131-7/+10
| | | | | | | | formatting styles.
* | Closes #19523: Merged fix from 3.3.Vinay Sajip2013-11-151-1/+3
|\ \ | |/
| * Issue #19523: Closed FileHandler leak which occurred when delay was set.Vinay Sajip2013-11-151-1/+3
| |
* | Closes #18941: Merged fix from 3.3.Vinay Sajip2013-09-061-2/+3
|\ \ | |/
| * Issue #18941: Respected delay when doing rollover.Vinay Sajip2013-09-061-2/+3
| |
* | Closes #18671: Output more information when logging exceptions occur.Vinay Sajip2013-08-081-0/+3
| |
* | 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-19/+21
| | | | | | | | names. Thanks to Alex Gaynor for the patch.
* | Issue #9501: Merged fix from 3.3.Vinay Sajip2013-01-151-1/+2
|\ \ | |/
| * Issue #9501: Merged fix from 3.2.Vinay Sajip2013-01-151-1/+2
| |\
| | * Issue #9501: Improved shutdown handling to deal with module attributes ↵Vinay Sajip2013-01-151-1/+2
| | | | | | | | | | | | correctly.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
| | |
* | | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
|\ \ \ | |/ / | | | | | | Patch by Serhiy Storchaka.
| * | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| |\ \ | | |/ | | | | | | Patch by Serhiy Storchaka.
| | * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | | | | | | | | | Patch by Serhiy Storchaka.
| | * Closes #16521: Improved error handling for basicConfig(), added tests for same.Vinay Sajip2012-11-251-7/+10
| | |
* | | Closes #16366: Improve diagnostics from handleError(). Thanks to Antoine ↵Vinay Sajip2012-10-311-6/+17
| | | | | | | | | | | | Pitrou for the suggestion.
* | | Issue #16141: replaced old-style exception handling code in logging with the ↵Vinay Sajip2012-10-091-5/+3
|/ / | | | | | | modern idiom.
* | Merged fix added for recent changes in non-threading environments.Vinay Sajip2012-02-231-2/+8
|\ \ | |/
| * Fix added for recent changes in non-threading environments.Vinay Sajip2012-02-231-2/+8
| |