Commit Graph

60 Commits

Author SHA1 Message Date
Vinay Sajip e900b494cb Issue #7077: Backported fix from py3k. 2010-09-03 09:06:07 +00:00
Vinay Sajip e8b1eafd88 Issue #9512: Made comment more informative. 2010-08-22 18:11:02 +00:00
Senthil Kumaran a5ba05cd31 Merged revisions 83901 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83901 | senthil.kumaran | 2010-08-10 01:31:35 +0530 (Tue, 10 Aug 2010) | 3 lines

  Fix Issue7007 -  Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules.
........
2010-08-09 20:18:04 +00:00
Vinay Sajip b0623d64a8 logging: Added LOG_FTP for SysLogHandler and updated documentation. 2010-03-24 14:31:21 +00:00
Vinay Sajip 9098ee4360 Issue #8117: logging: Improved algorithm for computing initial rollover time. 2010-03-12 06:01:21 +00:00
Vinay Sajip 7ce5c831cc logging: Removed some more 1.5.2 support code. 2010-02-07 13:06:51 +00:00
Vinay Sajip bd1094a4a5 logging: Improved support for SMTP over TLS. 2009-12-06 18:05:04 +00:00
Vinay Sajip 4830566751 logging: Added optional 'secure' parameter to SMTPHandler. 2009-12-06 17:57:11 +00:00
Vinay Sajip 5ac6528b91 Issue #7077: logging: SysLogHandler now treats Unicode as per RFC 5424. 2009-10-21 20:22:14 +00:00
Vinay Sajip 1c77b7f84c Issue #7086: Added TCP support to SysLogHandler and tidied up some anachronisms in the code. 2009-10-10 20:32:36 +00:00
Vinay Sajip 91290b5f53 Issue #5262: Improved fix. 2009-06-11 09:53:35 +00:00
Vinay Sajip 83da034c9a Issue #5262: Fixed bug in next roll over time computation in TimedRotatingFileHandler. 2009-06-11 09:23:41 +00:00
Vinay Sajip aecf36a0b5 Issue 5013: Fixed bug in FileHandler when delay was set - added fix for RotatingFileHandler and changed header comment slightly. 2009-01-20 23:16:08 +00:00
Kristján Valur Jónsson 84040dbe81 Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required. 2009-01-09 20:27:16 +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
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
Vinay Sajip 92aa2f8d6b Added optional delay argument to FileHandler and subclasses. 2008-01-24 12:37:33 +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 bababa3ecc Bug #1321: Fixed logic error in TimedRotatingFileHandler.__init__() 2007-10-24 10:47:06 +00:00
Vinay Sajip 754a5fb640 Updated docstring for SysLogHandler (#1720726). 2007-05-25 07:05:59 +00:00
Vinay Sajip 70c8e8b861 Added new optional credentials argument to SMTPHandler.__init__, and smtp.login() is now called in SMTPHandler.emit() if credentials are specified. 2007-05-01 10:20:03 +00:00
Vinay Sajip aa7b16a888 Added optional timeout to SocketHandler.makeSocket (SF #1695948) 2007-04-09 16:16:10 +00:00
Georg Brandl 5a096e1b10 Use new email module names (#1637162, #1637159, #1637157). 2007-01-22 19:40:21 +00:00
Vinay Sajip b3d8a06a46 Updated rotating file handlers to use _open(). 2007-01-16 09:50:07 +00:00
Vinay Sajip 73306b07ed Added WatchedFileHandler (based on SF patch #1598415) 2007-01-14 21:49:59 +00:00
Vinay Sajip c683a87ca6 Bare except clause removed from SMTPHandler.emit(). Now, only ImportError is trapped.
Bare except clause removed from SocketHandler.createSocket(). Now, only socket.error is trapped.
(SF #411881)
2007-01-08 18:50:32 +00:00
Vinay Sajip 5492e1722a Patch by Jeremy Katz (SF #1609407) 2006-12-11 14:07:16 +00:00
Vinay Sajip dc57936b63 Addressed SF#1524081 by using a dictionary to map level names to syslog priority names, rather than a string.lower(). 2006-07-20 23:20:12 +00:00
Vinay Sajip 6dd59f1632 Removed buggy exception handling in doRollover of rotating file handlers. Exceptions now propagate to caller. 2006-06-27 07:34:37 +00:00
Vinay Sajip 4b4a63e30a Replaced my dumb way of calculating seconds to midnight with Tim Peters' much more sensible suggestion. What was I thinking ?!? 2006-05-02 08:35:36 +00:00
Vinay Sajip 814fa0fe11 Exceptions raised during renaming in rotating file handlers are now passed to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised). 2006-01-16 09:27:58 +00:00
Vinay Sajip e928977b80 Exceptions raised during renaming in rotating file handlers are now passed to handleError (except for SystemExit and KeyboardInterrupt, which are re-raised). 2006-01-16 09:27:10 +00:00
Vinay Sajip d952041dc7 TimedRotatingFileHandler now calculates next rollover from previous rollover rather than current time. 2006-01-16 09:13:58 +00:00
Vinay Sajip 74a83e9ffb Fixed bug in time-to-midnight calculation. 2006-01-16 09:08:06 +00:00
Vinay Sajip 8b6b53f8ac Fixed indentation bug in _connect_unixsocket (thanks to Ken Lalonde for reporting it/supplying a patch) 2005-11-09 13:55:13 +00:00
Vinay Sajip 245a5ab31b Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError 2005-10-31 14:27:01 +00:00
Vinay Sajip 85c1909a78 Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError 2005-10-31 13:14:19 +00:00
Vinay Sajip b79350601b Added Host and Content-type headers to requests sent by HTTPHandler (suggested by Steven Vereecken) 2005-10-11 13:15:31 +00:00
Vinay Sajip 4600f11a07 Added optional encoding argument to file handlers. 2005-03-13 09:56:36 +00:00
Vinay Sajip a1974c1459 Improved SysLogHandler error recovery (patch by Erik Forsberg) 2005-01-13 08:23:56 +00:00
Vinay Sajip e7d4066cdf Changes made to maintain 1.5.2 compatibility. 2004-10-03 19:12:07 +00:00
Vinay Sajip fb154171c4 Fixed bug in DatagramHandler.send() 2004-08-24 09:36:23 +00:00
Martin v. Löwis 318a12eb01 Patch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate. 2004-08-18 12:27:40 +00:00
Vinay Sajip 5e9e9e19f7 Removed debugging print statements from TimedRotatingFileHandler, and sorted list returned by glob.glob() (SF #987166) 2004-07-12 09:21:41 +00:00
Vinay Sajip 3970c11157 Add exception handling for BaseRotatingFileHandler (SF #979252) 2004-07-08 10:24:04 +00:00
Tim Peters 4e0e1b6a54 Whitespace normalization. 2004-07-07 20:54:48 +00:00
Vinay Sajip 17c52d8493 Refactored RotatingFileHandler to create a base class for rotating handlers. Added TimedRotatingFileHandler. 2004-07-03 11:48:34 +00:00
Vinay Sajip 4102478f46 Removed spurious import statement 2004-03-08 16:57:19 +00:00
Vinay Sajip 3f74284e1b Minor documentation changes 2004-02-28 16:07:46 +00:00