You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: