classification
Title: Logging TimedRotatingFileHandler Feature Request
Type: enhancement Stage:
Components: Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: vinay.sajip, vschmidt
Priority: normal Keywords:

Created on 2008-05-19 12:54 by vschmidt, last changed 2008-05-20 15:46 by vinay.sajip. This issue is now closed.

Messages (2)
msg67061 - (view) Author: Val Schmidt (vschmidt) Date: 2008-05-19 12:53
I would like the TimedRotatingFileHandler in the logging package to 
optionally rotate on UTC time rather than local time. In my world 
(oceanographic research ships) important things like log files must 
always use UTC time rather than relative local time because local time 
changes alot!

Also it would be helpful to be able to configure the end-of-line 
termination explicitly for logging. For example, if one echos log 
entries out a serial port using the StreamHandler, one might want to 
specify \r, \n or some other such thing because of the funny gear on the 
other side of the serial line. The formatter method seems to default to 
\n (which I generally like) but there's no way to change it.
msg67132 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2008-05-20 15:46
Fix checked into trunk (r63507). TimedRotatingFileHandler now takes an
optional "utc" parameter - defaults to 0 (localtime); set it to 1 to
enable UTC. (Note: True/False not used since we're still supposed to
work under 1.5.2 - this will be fixed during a later, more comprehensive
reworking of the module).
History
Date User Action Args
2008-05-20 15:46:43vinay.sajipsetstatus: open -> closed
resolution: fixed
messages: + msg67132
2008-05-20 14:42:54georg.brandlsetassignee: vinay.sajip
nosy: + vinay.sajip
2008-05-19 12:54:04vschmidtcreate