Commit Graph

187 Commits

Author SHA1 Message Date
Serhiy Storchaka 7e7a3dba5f 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:41 +03:00
Vinay Sajip d55436ace3 Issue #23207: Improved kwarg validation. 2015-03-18 08:47:58 +00:00
Vinay Sajip 5abca7023c Issue #23207: logging.basicConfig() now does additional validation of its arguments. 2015-01-23 19:52:21 +00:00
Vinay Sajip d1d4fbff63 Issue #22386: fixed regression. 2014-09-11 23:06:09 +01:00
Vinay Sajip 194bcaf4dc Issue #21709: Improved implementation to cover the frozen module case. 2014-06-12 23:36:33 +01:00
Vinay Sajip 80f2262dcf Issue #21709: Remove references to __file__ when part of a frozen application. 2014-06-11 08:01:32 +01:00
Vinay Sajip 1b7611405d Issue #21172: isinstance check relaxed from dict to collections.Mapping. 2014-04-10 07:12:19 +01:00
Vinay Sajip 156307bfd6 Issue #21149: Improved thread-safety in logging cleanup during interpreter shutdown. 2014-04-04 10:51:49 +01:00
Vinay Sajip 698abe75d4 Closes #20918: Added handling for exceptions during fallback output of logging exceptions. 2014-03-14 13:42:19 +00:00
Vinay Sajip 30e6a64e76 Closes #20242: Merged fix from 3.3. 2014-01-13 22:01:16 +00:00
Vinay Sajip 1fd1202072 Issue #20242: Fixed basicConfig() format strings for the alternative formatting styles. 2014-01-13 21:59:56 +00:00
Vinay Sajip a76157dca6 Issue #19523: Closed FileHandler leak which occurred when delay was set. 2013-11-15 20:40:27 +00:00
Vinay Sajip 5e75829ec3 Closes #19523: Merged fix from 3.3. 2013-11-15 20:42:47 +00:00
Vinay Sajip f7b436ce8d Closes #18941: Merged fix from 3.3. 2013-09-06 10:26:48 +01:00
Vinay Sajip 43c6ef1899 Issue #18941: Respected delay when doing rollover. 2013-09-06 10:25:31 +01:00
Vinay Sajip 3f58277382 Closes #18671: Output more information when logging exceptions occur. 2013-08-08 18:28:53 +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 b51aa7b7eb Issue #9501: Merged fix from 3.3. 2013-01-15 17:57:18 +00:00
Vinay Sajip 6e669fba47 Issue #9501: Merged fix from 3.2. 2013-01-15 17:56:43 +00:00
Vinay Sajip 5e1c3ce133 Issue #9501: Improved shutdown handling to deal with module attributes correctly. 2013-01-15 17:55:57 +00:00
Andrew Svetlov f7a17b48d7 Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
Andrew Svetlov a191959849 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +02:00
Andrew Svetlov 5b89840d9c Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov 737fb89dd1 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Vinay Sajip d27e05d734 Closes #16521: Improved error handling for basicConfig(), added tests for same. 2012-11-25 15:11:46 +00:00
Vinay Sajip d06d5403de Closes #16366: Improve diagnostics from handleError(). Thanks to Antoine Pitrou for the suggestion. 2012-10-31 23:49:19 +00: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 323e4fb864 Merged fix added for recent changes in non-threading environments. 2012-02-23 20:51:18 +00:00
Vinay Sajip f05090372a Fix added for recent changes in non-threading environments. 2012-02-23 20:49:08 +00:00
Vinay Sajip 57c223791d Merged logging flush/close changes from 3.2. 2012-02-23 20:03:49 +00:00
Vinay Sajip 0abf61db4d logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion. 2012-02-23 19:45:52 +00:00
Vinay Sajip 9b727eca26 Closes #13859: Merged fix from 3.2 - thanks to Matt Joiner for spotting this and the patch. 2012-01-25 17:49:45 +00:00
Vinay Sajip a50c284076 Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch. 2012-01-25 17:41:13 +00:00
Vinay Sajip 5d116b758a Closes #13807: Merged fix from 3.2. 2012-01-20 11:31:46 +00:00
Vinay Sajip 315a62befc Closes #13807: Merged fix from 3.1. 2012-01-20 11:27:36 +00:00
Vinay Sajip 889bb2969d Closes #13807: Now checks for sys.stderr being there before writing to it. 2012-01-20 11:23:02 +00:00
Gregory P. Smith e85488c6f4 Mention that level can be an int or str in the setLevel docstring. 2011-12-17 12:36:34 -08: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
Vinay Sajip e2618f34be Closes #13361: Merge fix from 3.2. 2011-11-07 10:15:55 +00:00
Vinay Sajip 3bd5638736 Closes #13361: Raise correct exception type. 2011-11-07 10:15:08 +00:00
Vinay Sajip 39b53c50c4 Merged fix for #13361 from 3.2. 2011-11-07 08:53:58 +00:00
Vinay Sajip 61b787e6dd Closes #13661: Check added for type of logger name. 2011-11-07 08:53:03 +00:00
Vinay Sajip 0a889534e7 Closes #13235: Changed PendingDeprecationWarning to DeprecationWarning. 2011-10-22 13:34:48 +01:00
Vinay Sajip 04d5bc00a2 Closes #13235: Added deprecation for warn() methods and function in logging. 2011-10-21 07:33:42 +01:00
Vinay Sajip 444be16136 Issue #12780: Merged fix from 3.2. 2011-08-19 07:15:45 +01:00
Vinay Sajip 2da23caec0 Issue #12780: Removed checks in logging for .pyc/.pyo in __file__. 2011-08-19 07:14:40 +01:00
Vinay Sajip 8188f585b2 Fixes #12637: Merged fix from 3.2 and added test. 2011-07-25 19:58:13 +01:00
Vinay Sajip 45dedaafc2 Fixes #12637: Last resort messages now correctly handled. Thanks to Xavier de Gaye for the patch." 2011-07-25 19:53:28 +01:00