Commit graph

152 commits

Author SHA1 Message Date
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
Vinay Sajip
6dbed2e8b3 logging: Allowed filters to be just callables. 2010-10-19 20:53:01 +00:00
Vinay Sajip
6fac817136 logging: Added tests for _logRecordClass changes. 2010-10-19 20:44:14 +00:00
Vinay Sajip
062d56b1f0 logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to increase flexibility of LogRecord creation. 2010-10-19 15:26:24 +00:00
Vinay Sajip
1c71b2af1a Issue #9948: logging: fixed problem of losing filename case information. 2010-10-10 20:36:04 +00:00
Vinay Sajip
8382d0fe2e Removed duplicated method. 2010-10-09 11:24:34 +00:00
Vinay Sajip
3ab905f17b Issue #9945: logging: backported locking fixes from py3k. 2010-09-27 21:46:14 +00:00
Vinay Sajip
4fbe4b340a logging: NullHandler optimisation. 2010-09-26 11:04:10 +00:00
Vinay Sajip
32fb6a81f9 Issue #9945: logging: Fixed locking bugs in addHandler/removeHandler. 2010-09-25 17:42:36 +00:00
Vinay Sajip
212b590e11 logging: Updated LoggerAdapter implementation. 2010-09-21 11:31:32 +00:00
Vinay Sajip
c84f016988 Added some methods to LoggerAdapter, and updated documentation. 2010-09-21 11:25:39 +00:00
Vinay Sajip
61c3f0dae7 logging: added hasHandlers() to LoggerAdapter. 2010-09-20 10:13:13 +00:00