Commit Graph

163 Commits

Author SHA1 Message Date
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 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 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
Vinay Sajip ae5740f139 Made time formats in Formatter more configurable. 2011-06-09 18:42:19 +01:00
Victor Stinner 2a12974bca Close #12028: Make threading._get_ident() public, rename it to
threading.get_ident() and document it. This function was used by
_thread.get_ident().
2011-05-30 23:02:52 +02:00
Vinay Sajip 312cc0d28e Updated usage of boolean values. 2011-04-30 21:51:51 +01:00
Vinay Sajip 7fe1d51924 Improved test_logging coverage. 2011-04-28 12:04:58 +01:00
Vinay Sajip 985ef87ea0 More test_logging coverage improvements. 2011-04-26 19:34:04 +01:00
Vinay Sajip 26fe4b70cf test_logging coverage improvements. 2011-04-26 18:43:05 +01:00
Vinay Sajip a3359eec7d Whitespace normalized. 2011-04-11 08:43:52 +01:00
Vinay Sajip 4a0a31df5c Added 'handlers' argument to logging.basicConfig. 2011-04-11 08:42:07 +01:00
Vinay Sajip e6c1eb9267 Closes issue #11557: Added Natalia Bidart's patch to improve test coverage. 2011-03-29 17:20:34 +01:00
Vinay Sajip d9512e9ac1 Issue #11444: Merge fix from 3.1. 2011-03-08 22:53:21 +00:00
Vinay Sajip c8ab6eeb01 Issue #11444: Lock handlers while flushing/closing during shutdown. 2011-03-08 22:49:57 +00:00
Vinay Sajip 89807a5277 Issue #11330: Updated tests for correct asctime handling. 2011-02-26 16:06:02 +00:00
Vinay Sajip 2a4c0f8b60 Removed typo. 2011-02-26 14:28:36 +00:00
Vinay Sajip 10914b7473 Issue #11330: asctime format bug fixed. 2011-02-26 14:15:48 +00:00
Vinay Sajip 5a27d40186 logging: added handler of last resort. 2010-12-10 11:42:57 +00:00
Vinay Sajip fad058f0ca logging: tidied up some docstrings. 2010-12-03 13:01:11 +00:00
Vinay Sajip 615615291f logging: Added getLogRecordFactory/setLogRecordFactory with docs and tests. 2010-12-03 11:50:38 +00:00
Vinay Sajip 8593ae6451 Logging: added stack_info argument. 2010-11-14 21:33:04 +00:00
Vinay Sajip c5b273011b Added style argument to logging.basicConfig() and documented this change. 2010-10-31 14:59:16 +00:00
Vinay Sajip 6a65c5df86 logging: Improved Formatter implementation. 2010-10-26 13:16:11 +00:00
Vinay Sajip d0557bfe77 logging: Formatter implementation tweak. 2010-10-25 15:25:24 +00:00
Vinay Sajip a39c571061 logging: Added style option to Formatter to allow %, {} or himBHformatting. 2010-10-25 13:57:39 +00:00
Vinay Sajip 2a20dfc2aa logging: Made StreamHandler terminator configurable. 2010-10-20 20:05:38 +00:00
Vinay Sajip fc082cafa6 logging: Documented usage of callables as filters. 2010-10-19 21:13:49 +00:00