Commit Graph

129 Commits

Author SHA1 Message Date
Benjamin Peterson
3e16f3dd7f remove has_key usage 2008-12-14 01:46:11 +00:00
Vinay Sajip
6831d6bc7f Took Nick Coghlan's advice about importing warnings globally in logging, to avoid the possibility of race conditions: "This could deadlock if a thread spawned as a side effect of importing a module happens to trigger a warning. warnings is pulled into sys.modules as part of the interpreter startup - having a global 'import warnings' shouldn't have any real effect on logging's import time." 2008-12-04 20:32:18 +00:00
Vinay Sajip
213faca204 Issue #4384: Added logging integration with warnings module using captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging. 2008-12-03 23:22:58 +00:00
Vinay Sajip
65d66e1006 Issue #3772: Fixed regression problem in StreamHandler.emit(). 2008-09-04 07:31:21 +00:00
Vinay Sajip
6a2fd81316 Issue #3726: Allowed spaces in separators in logging configuration files. 2008-09-03 09:20:05 +00:00
Vinay Sajip
72ed07843a logging: fixed lack of use of encoding attribute specified on a stream. 2008-09-01 14:30:10 +00:00
Benjamin Peterson
a9b2222de4 change a few uses of the threading APIs 2008-08-18 18:01:43 +00:00
Brett Cannon
e6bfe80b67 Remove dict.has_key() and apply() usage from the logging package to silence
warnings when run under -3.
2008-08-04 00:09:43 +00:00
Vinay Sajip
bc7e34f692 Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch. 2008-07-18 08:59:06 +00:00
Vinay Sajip
5ff7171ddc Removed out-of-date comment in _install_handlers and
used issubclass in place of equality comparison of classes.
2008-06-29 21:25:28 +00:00
Vinay Sajip
5f7b97d987 Bug #3136: fileConfig()'s disabling of old loggers is now conditional via an optional disable_existing_loggers parameter, but the default value is such that the old behaviour is preserved.
Thanks to Leandro Lucarella for the patch.
2008-06-19 22:40:17 +00:00
Vinay Sajip
8f96b8ec43 Bug #3126: StreamHandler and FileHandler check before calling "flush" and "close" that the stream object has these, using hasattr (thanks to bobf for the patch). 2008-06-17 11:02:14 +00:00
Benjamin Peterson
0fbcf69455 give the threading API PEP 8 names 2008-06-11 17:27:50 +00:00
Georg Brandl
392c6fc02d ConfigParser renaming reversal part 3: move module into place and adapt imports. 2008-05-25 07:25:25 +00:00
Georg Brandl
e152a77d96 socketserver renaming reversal part 3: move the module into the right
place and fix all references to it.  Closes #2926.
2008-05-24 18:31:28 +00:00
Vinay Sajip
a12da73c46 Fixed: #2914 (RFE for UTC support in TimedRotatingFileHandler) and #2929 (wrong filename used to delete old log files). 2008-05-20 15:34:36 +00:00
Alexandre Vassalotti
e2514c6f10 Updated import statements to use the new configparser module name.
Updated the documentation to use the new name.
Revert addition of the stub entry for the old name.

Georg, I am reverting your changes since this commit should propagate
to py3k.
2008-05-14 22:44:22 +00:00
Alexandre Vassalotti
d192c925ac Updated all import statements to use the new socketserver module name.
Renamed socketserver module in its own documentation.
Renamed documentation references.
2008-05-12 02:11:22 +00:00
Vinay Sajip
e5aefa0b30 Fix: #2315, #2316, #2317: TimedRotatingFileHandler - changed logic to better handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period. 2008-04-02 21:09:27 +00:00
Christian Heimes
c5f05e45cf Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
Raymond Hettinger
71fa93af22 Add __all__ to logging module. 2008-02-16 01:22:54 +00:00
Vinay Sajip
92aa2f8d6b Added optional delay argument to FileHandler and subclasses. 2008-01-24 12:37:33 +00:00
Vinay Sajip
97ef165a1d Added optional delay argument to FileHandler and subclasses. 2008-01-24 12:37:08 +00:00
Vinay Sajip
ae747dccab Fix: #1836: Off-by-one bug in TimedRotatingFileHandler rollover calculation. Patch thanks to Kathryn M. Kowalski. 2008-01-21 17:02:26 +00:00
Vinay Sajip
a26c73ed55 Added LoggerAdapter class, changed copyright dates, made check for extra parameter passed to logging methods explicitly against None rather than a truth value. 2008-01-18 15:55:57 +00:00