summaryrefslogtreecommitdiffstats
path: root/Lib/logging
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)Miss Islington (bot)2018-08-191-1/+2
| | | (cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7)
* [3.6] bpo-33978: Close existing handlers before logging (re-)configuration. ↵Xtreak2018-07-021-4/+11
| | | | | | | (GH-8008). (GH-8045) (cherry picked from commit 087570af6d5d39b51bdd5e660a53903960e58678) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* bpo-33400: Clarified documentation to indicate no strict adherence to ISO ↵Miss Islington (bot)2018-05-041-8/+9
| | | | | | | 8601. (GH-6703) (cherry picked from commit c4994dc00d9828a99510f3851da93b0e1c18361d) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* bpo-30904: Removed duplicated Host: header. (GH-4465) (#4468)Miss Islington (bot)2017-11-191-1/+3
| | | (cherry picked from commit e96ba183c43ad6633b5d014b3dc57433e2802faf)
* bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) ↵Miss Islington (bot)2017-11-191-1/+1
| | | | | | (GH-4466) TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed. (cherry picked from commit afad147b59fe84b12317f7340ddd2deeecb22321)
* 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)
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-011-5/+20
| | | | (#1676) (#1903)
* bpo-29808: Do not fail in SysLogHandler constructor if syslog isn't ↵Vinay Sajip2017-03-171-1/+8
| | | | | | | | available. (#696) bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed. (cherry picked from commit 1b038e073807ecb6fd176edaf3386a8e3205416e)
* Issue #292Merged fixes from 3.5.Vinay Sajip2017-01-111-3/+8
|\
| * Issue #29220: Improved fix and test.Vinay Sajip2017-01-111-3/+8
| |
* | Closes #27930: Merged fix from 3.5.Vinay Sajip2016-09-081-15/+2
|\ \ | |/
| * Fixes #27930: improved QueueListener behaviour.Vinay Sajip2016-09-081-17/+4
| |
| * 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-222-2/+7
| |
* | Closes #26559: Allow configuring flush-on-close behaviour of MemoryHandler.Vinay Sajip2016-07-221-5/+15
| |
* | Fixed #27251: merged fix from 3.5.Vinay Sajip2016-06-071-2/+2
|\ \ | |/
| * Fixed #27251: corrected string/bytes handling in credentials.Vinay Sajip2016-06-071-2/+2
| |
* | 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
| |
* | Closes #25685: Merged fix from 3.5.Vinay Sajip2015-12-261-0/+2
|\ \ | |/
| * Closes #25685: Made SocketHandler emission more efficient.Vinay Sajip2015-12-261-0/+2
| |
* | Issue #23883: Add missing APIs to __all__; patch by Jacek KołodziejMartin Panter2015-11-141-2/+3
| |
* | Closes #25411: Merged fix from 3.5.Vinay Sajip2015-10-171-8/+10
|\ \ | |/
| * Closes #25411: Merged fix from 3.4.Vinay Sajip2015-10-171-8/+10
| |\
| | * Closes #25411: Improved Unicode support in SMTPHandler.Vinay Sajip2015-10-171-10/+12
| | |
* | | Closes #24884: refactored WatchedFileHandler file reopening into a separate ↵Vinay Sajip2015-10-011-3/+12
|/ / | | | | | | method, based on a suggestion and patch by Marian Horban.
* | 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.
| * 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.
* | Issue #23207: merged fix from 3.4.Vinay Sajip2015-03-181-1/+1
|\ \ | |/
| * Issue #23207: Improved kwarg validation.Vinay Sajip2015-03-181-1/+1
| |
* | Added respect_handler_level to QueueListener.Vinay Sajip2015-02-091-4/+10
| |
* | 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
| |
* | merge 3.4 (#22788)Benjamin Peterson2014-11-241-2/+7
|\ \ | |/
| * add context parameter to HTTPHandler (closes #22788)Benjamin Peterson2014-11-241-2/+7
| |
* | Closes #22776: Merged fix from 3.4.Vinay Sajip2014-11-011-14/+14
|\ \ | |/
| * Brought excluded code into the scope of a try block in SysLogHandler.emit().Vinay Sajip2014-11-011-14/+14
| |
* | Closes #22646: Accept list as well as tuple to support initialisation via ↵Vinay Sajip2014-10-171-2/+2
|\ \ | |/ | | | | dictConfig().
| * Issue #22646: Accept list as well as tuple to support initialisation via ↵Vinay Sajip2014-10-171-2/+2
| | | | | | | | dictConfig().
* | 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.
* | Closes #22386: merged fix from 3.4.Vinay Sajip2014-09-111-1/+2
|\ \ | |/
| * Issue #22386: fixed regression.Vinay Sajip2014-09-111-1/+2
| |
* | Closes #21742: Merged fix from 3.4.Vinay Sajip2014-06-141-0/+1
|\ \ | |/