summaryrefslogtreecommitdiffstats
path: root/Lib/logging
Commit message (Collapse)AuthorAgeFilesLines
* Changed status from "beta" to "production"; since logging has been part of ↵Vinay Sajip2006-05-181-1/+1
| | | | the stdlib since 2.3, it should be safe to make this assertion ;-)
* Replaced my dumb way of calculating seconds to midnight with Tim Peters' ↵Vinay Sajip2006-05-021-6/+4
| | | | much more sensible suggestion. What was I thinking ?!?
* StreamHandler now checks explicitly for None before using sys.stderr as the ↵Vinay Sajip2006-04-111-1/+1
| | | | stream (see SF bug #1463840).
* Catch situations where currentframe() returns None. See SF patch #1447410, ↵Vinay Sajip2006-03-151-2/+5
| | | | this is a different implementation.
* Added logThreads and logProcesses to allow conditional omission of logging ↵Vinay Sajip2006-03-131-2/+12
| | | | this information
* Added function name to LogRecord.Vinay Sajip2006-02-091-5/+8
|
* Propagate exceptions from shutdown() if raiseExceptions is not set.Vinay Sajip2006-02-091-6/+14
| | | | Added 'extra' keyword argument handling to logging calls, as discussed on python-dev.
* Removed defensive test in Handler.closeVinay Sajip2006-02-071-4/+3
|
* Get test_logging to not hang when running under regrtest.py -R ::Neal Norwitz2006-02-051-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.
* Added the ability to specify a class attribute in Formatter configuration. ↵Vinay Sajip2006-01-201-1/+21
| | | | Contributed by Shane Hathaway.
* Refactoring for fileConfig. Contributed by Shane Hathaway.Vinay Sajip2006-01-161-125/+142
|
* Exceptions raised during renaming in rotating file handlers are now passed ↵Vinay Sajip2006-01-161-2/+2
| | | | to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised).
* Exceptions raised during renaming in rotating file handlers are now passed ↵Vinay Sajip2006-01-161-2/+12
| | | | to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised).
* TimedRotatingFileHandler now calculates next rollover from previous rollover ↵Vinay Sajip2006-01-161-1/+1
| | | | rather than current time.
* Fixed bug in time-to-midnight calculation.Vinay Sajip2006-01-161-3/+6
|
* Fixed indentation bug in _connect_unixsocket (thanks to Ken Lalonde for ↵Vinay Sajip2005-11-091-1/+1
| | | | reporting it/supplying a patch)
* Exception handling now raises KeyboardInterrupt and SystemExit rather than ↵Vinay Sajip2005-10-311-0/+6
| | | | passing to handleError
* Exception handling now raises KeyboardInterrupt and SystemExit rather than ↵Vinay Sajip2005-10-312-0/+8
| | | | passing to handleError
* One-off "No handlers..." error message only raised if raiseExceptions is set.Vinay Sajip2005-10-231-1/+1
|
* Don't use a string exception since it's deprecatedNeal Norwitz2005-10-211-1/+1
|
* Optimised Placeholders handling of child loggers by using a dict rather than ↵Vinay Sajip2005-10-141-4/+8
| | | | a list (much slower in the pathological case of hundreds of child Loggers to a Placeholder - problem reported by Ryan Blazecka).
* Added Host and Content-type headers to requests sent by HTTPHandler ↵Vinay Sajip2005-10-111-1/+10
| | | | (suggested by Steven Vereecken)
* Fixed bug where the logging message was wrongly being demoted from Unicode ↵Vinay Sajip2005-10-071-6/+8
| | | | to string (SF #1314107)
* Added lock acquisition around handler removal from loggerVinay Sajip2005-09-161-1/+5
|
* Added _handlerList to allow shutdown to flush and close handlers in reverse ↵Vinay Sajip2005-09-081-1/+4
| | | | order of creation (see SF# 1282539)
* Changed _srcfile determination to support py2exe.Vinay Sajip2005-09-021-1/+3
|
* Documentation clarified re. config socket listener protocolVinay Sajip2005-06-051-3/+3
|
* Added threadName and now using re-entrant lockVinay Sajip2005-03-311-2/+5
|
* Made traceback unconditional, to avoid lock contention problems when logging ↵Vinay Sajip2005-03-131-3/+2
| | | | errors occur in a custom importer (SF path #1158052).
* Added optional encoding argument to file handlers.Vinay Sajip2005-03-131-11/+25
|
* Added optional encoding argument to file handlers. Made traceback import ↵Vinay Sajip2005-03-131-9/+19
| | | | unconditional, to avoid lock contention problems which occur when logging from custom importers (SF patch #1158052)
* Handle errors in imports of thread, threadingVinay Sajip2005-02-181-1/+7
|
* Improved frame handling for 1.5.2, and now return func from findCaller (not ↵Vinay Sajip2005-02-181-9/+20
| | | | actually used yet)
* Improved SysLogHandler error recovery (patch by Erik Forsberg)Vinay Sajip2005-01-131-9/+16
|
* Fixed bug in handling of args in LogRecord.__init__.Vinay Sajip2004-10-211-1/+1
|
* Changed handling of args in LogRecord.__init__.Vinay Sajip2004-10-201-2/+17
|
* Changes made to maintain 1.5.2 compatibility.Vinay Sajip2004-10-031-6/+27
|
* Version number updated to 0.4.9.5Vinay Sajip2004-10-031-2/+2
|
* Added log() functionVinay Sajip2004-09-241-0/+8
|
* Added exception handling during handler initialization in fileConfig()Vinay Sajip2004-09-241-24/+27
|
* Added getLoggerClass()Vinay Sajip2004-09-221-12/+15
|
* Fixed bug in DatagramHandler.send()Vinay Sajip2004-08-241-0/+2
|
* Patch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate.Martin v. Löwis2004-08-181-16/+2
|
* Updated Logger.log() docstring to clarify that lvl parameter should be an ↵Vinay Sajip2004-08-041-1/+1
| | | | integer.
* Ignore exceptions which occur when closing files in shutdown()Vinay Sajip2004-07-291-2/+7
|
* Removed debugging print statements from TimedRotatingFileHandler, and sorted ↵Vinay Sajip2004-07-121-3/+4
| | | | list returned by glob.glob() (SF #987166)
* Add exception handling for BaseRotatingFileHandler (SF #979252)Vinay Sajip2004-07-081-3/+6
|
* FileHandler now stores the basename as an absolute path (fix for SF #982049)Vinay Sajip2004-07-081-2/+4
|
* Whitespace normalization.Tim Peters2004-07-072-6/+6
|
* Refactored RotatingFileHandler to create a base class for rotating ↵Vinay Sajip2004-07-031-11/+167
| | | | handlers. Added TimedRotatingFileHandler.