Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor fix for currentframe (SF #1652788). | Vinay Sajip | 2007-02-17 | 1 | -5/+5 |
| | |||||
* | Backported changes from trunk: | Vinay Sajip | 2007-01-08 | 1 | -3/+6 |
| | | | | | Made func argument in LogRecord.__init__ optional. Improved performance of _fixupChildren. | ||||
* | logging's atexit hook now runs even if the rest of the module has | Georg Brandl | 2006-08-11 | 1 | -2/+2 |
| | | | | already been cleaned up. | ||||
* | Changed status from "beta" to "production"; since logging has been part of ↵ | Vinay Sajip | 2006-05-18 | 1 | -1/+1 |
| | | | | the stdlib since 2.3, it should be safe to make this assertion ;-) | ||||
* | StreamHandler now checks explicitly for None before using sys.stderr as the ↵ | Vinay Sajip | 2006-04-11 | 1 | -1/+1 |
| | | | | stream (see SF bug #1463840). | ||||
* | Catch situations where currentframe() returns None. See SF patch #1447410, ↵ | Vinay Sajip | 2006-03-15 | 1 | -2/+5 |
| | | | | this is a different implementation. | ||||
* | Added logThreads and logProcesses to allow conditional omission of logging ↵ | Vinay Sajip | 2006-03-13 | 1 | -2/+12 |
| | | | | this information | ||||
* | Added function name to LogRecord. | Vinay Sajip | 2006-02-09 | 1 | -5/+8 |
| | |||||
* | Propagate exceptions from shutdown() if raiseExceptions is not set. | Vinay Sajip | 2006-02-09 | 1 | -6/+14 |
| | | | | Added 'extra' keyword argument handling to logging calls, as discussed on python-dev. | ||||
* | Removed defensive test in Handler.close | Vinay Sajip | 2006-02-07 | 1 | -4/+3 |
| | |||||
* | Get test_logging to not hang when running under regrtest.py -R :: | Neal Norwitz | 2006-02-05 | 1 | -1/+2 |
| | | | | | | | | | | | | | | Not sure why/how _handlers/_handlerList is out of sync. This could indicate a deeper problem. In test_logging, the only absolutely necessary change to get working was tcpserver.abort = 1. But we don't want to wait infinitely to join the threads, so give a 2.0 second timeout. There doesn't appear to be a need for a local abort variable in serve_until_stopped, so just use the instance member. Note the problem is only on HEAD, not in 2.4. | ||||
* | Exception handling now raises KeyboardInterrupt and SystemExit rather than ↵ | Vinay Sajip | 2005-10-31 | 1 | -0/+2 |
| | | | | passing to handleError | ||||
* | One-off "No handlers..." error message only raised if raiseExceptions is set. | Vinay Sajip | 2005-10-23 | 1 | -1/+1 |
| | |||||
* | Don't use a string exception since it's deprecated | Neal Norwitz | 2005-10-21 | 1 | -1/+1 |
| | |||||
* | Optimised Placeholders handling of child loggers by using a dict rather than ↵ | Vinay Sajip | 2005-10-14 | 1 | -4/+8 |
| | | | | a list (much slower in the pathological case of hundreds of child Loggers to a Placeholder - problem reported by Ryan Blazecka). | ||||
* | Fixed bug where the logging message was wrongly being demoted from Unicode ↵ | Vinay Sajip | 2005-10-07 | 1 | -6/+8 |
| | | | | to string (SF #1314107) | ||||
* | Added lock acquisition around handler removal from logger | Vinay Sajip | 2005-09-16 | 1 | -1/+5 |
| | |||||
* | Added _handlerList to allow shutdown to flush and close handlers in reverse ↵ | Vinay Sajip | 2005-09-08 | 1 | -1/+4 |
| | | | | order of creation (see SF# 1282539) | ||||
* | Changed _srcfile determination to support py2exe. | Vinay Sajip | 2005-09-02 | 1 | -1/+3 |
| | |||||
* | Added threadName and now using re-entrant lock | Vinay Sajip | 2005-03-31 | 1 | -2/+5 |
| | |||||
* | Added optional encoding argument to file handlers. Made traceback import ↵ | Vinay Sajip | 2005-03-13 | 1 | -9/+19 |
| | | | | unconditional, to avoid lock contention problems which occur when logging from custom importers (SF patch #1158052) | ||||
* | Improved frame handling for 1.5.2, and now return func from findCaller (not ↵ | Vinay Sajip | 2005-02-18 | 1 | -9/+20 |
| | | | | actually used yet) | ||||
* | Fixed bug in handling of args in LogRecord.__init__. | Vinay Sajip | 2004-10-21 | 1 | -1/+1 |
| | |||||
* | Changed handling of args in LogRecord.__init__. | Vinay Sajip | 2004-10-20 | 1 | -2/+17 |
| | |||||
* | Version number updated to 0.4.9.5 | Vinay Sajip | 2004-10-03 | 1 | -2/+2 |
| | |||||
* | Added log() function | Vinay Sajip | 2004-09-24 | 1 | -0/+8 |
| | |||||
* | Added getLoggerClass() | Vinay Sajip | 2004-09-22 | 1 | -12/+15 |
| | |||||
* | Updated Logger.log() docstring to clarify that lvl parameter should be an ↵ | Vinay Sajip | 2004-08-04 | 1 | -1/+1 |
| | | | | integer. | ||||
* | Ignore exceptions which occur when closing files in shutdown() | Vinay Sajip | 2004-07-29 | 1 | -2/+7 |
| | |||||
* | FileHandler now stores the basename as an absolute path (fix for SF #982049) | Vinay Sajip | 2004-07-08 | 1 | -2/+4 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-07-07 | 1 | -1/+1 |
| | |||||
* | Changed basicConfig() to add keyword arguments. Changes are backward-compatible. | Vinay Sajip | 2004-07-03 | 1 | -10/+56 |
| | | | | | Added error checking to log() to check that level is an integer, and raise a TypeError if not (as long as raiseExceptions is set). Minor documentation corrections. | ||||
* | Minor documentation changes | Vinay Sajip | 2004-02-28 | 1 | -4/+4 |
| | |||||
* | Handler close() functions call flush() [SF #901330] | Vinay Sajip | 2004-02-21 | 1 | -3/+4 |
| | |||||
* | Copyright year & version number/version date changes. | Vinay Sajip | 2004-02-20 | 1 | -8/+36 |
| | | | | | | | | Exception traceback text is now cached. Closing a handler now removes it from the internal _handlers list. Handlers now chain to Handler.close() from their close() methods. Exception info can be passed as a tuple in exc_info. shutdown() is registered to be called at application exit. | ||||
* | SF patch #761519: Fixes for bugs 760703 and 757821 | Raymond Hettinger | 2003-06-27 | 1 | -2/+13 |
| | | | | | | | | | | | | | | | | | | SF bug #760703: SocketHandler and LogRecord don't work well together SF bug #757821: logging module docs Applied Vinay Sajip's patch with a few minor fixups and a NEWS item. Patched __init__.py - added new function makeLogRecord (for bug report 760703). Patched handlers.py - updated some docstrings and deleted some old commented-out code. Patched test_logging.py to make use of makeLogRecord. Patched liblogging.tex to fill documentation gaps (both 760703 and bug 757821). | ||||
* | Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes | Neal Norwitz | 2003-04-23 | 1 | -2/+0 |
| | |||||
* | SF patch #725904, Minor changes to logging from module author (Vinay Sajip) | Neal Norwitz | 2003-04-23 | 1 | -9/+2 |
| | | | | - upgrade to version 0.4.8 | ||||
* | Undo the apply() removals; this code needs to run under Python 1.5.2. | Guido van Rossum | 2003-03-02 | 1 | -13/+13 |
| | |||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -13/+13 |
| | |||||
* | getpid doesn't exist on MacOS9. | Jack Jansen | 2003-02-21 | 1 | -1/+4 |
| | |||||
* | SF patch #687683, Patches to logging (updates from Vinay) | Neal Norwitz | 2003-02-18 | 1 | -28/+58 |
| | | | | | | Mostly rename WARN -> WARNING Other misc tweaks Update tests (not in original patch) | ||||
* | Use lightweight introspection instead of the inspect module hammer. | Jeremy Hylton | 2003-01-23 | 1 | -24/+18 |
| | | | | | | | Removing locking are findCaller() calls as the implementation using sys._getframe() is thread-safe. Changes reviewed by Vinay. | ||||
* | SF Patch #638825 logging module | Neal Norwitz | 2002-11-15 | 1 | -3/+3 |
| | | | | Fix pychecker warnings, remove unused imports and rename root | ||||
* | Get rid of #! lines, references to usage as __main__, README.txt, and | Guido van Rossum | 2002-11-13 | 1 | -20/+4 |
| | | | | http://www.red-dove.com/python_logging.html. | ||||
* | Adding Vinay Sajip's logging package. | Guido van Rossum | 2002-11-13 | 1 | -0/+1183 |