Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging TimedRotatingFileHandler Feature Request #47163

Closed
vschmidt mannequin opened this issue May 19, 2008 · 2 comments
Closed

Logging TimedRotatingFileHandler Feature Request #47163

vschmidt mannequin opened this issue May 19, 2008 · 2 comments
Assignees
Labels
type-feature A feature request or enhancement

Comments

@vschmidt
Copy link
Mannequin

vschmidt mannequin commented May 19, 2008

BPO 2914
Nosy @vsajip

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:

assignee = 'https://github.com/vsajip'
closed_at = <Date 2008-05-20.15:46:43.837>
created_at = <Date 2008-05-19.12:54:03.648>
labels = ['type-feature']
title = 'Logging  TimedRotatingFileHandler Feature Request'
updated_at = <Date 2008-05-20.15:46:43.836>
user = 'https://bugs.python.org/vschmidt'

bugs.python.org fields:

activity = <Date 2008-05-20.15:46:43.836>
actor = 'vinay.sajip'
assignee = 'vinay.sajip'
closed = True
closed_date = <Date 2008-05-20.15:46:43.837>
closer = 'vinay.sajip'
components = []
creation = <Date 2008-05-19.12:54:03.648>
creator = 'vschmidt'
dependencies = []
files = []
hgrepos = []
issue_num = 2914
keywords = []
message_count = 2.0
messages = ['67061', '67132']
nosy_count = 2.0
nosy_names = ['vinay.sajip', 'vschmidt']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue2914'
versions = ['Python 2.5']

@vschmidt
Copy link
Mannequin Author

vschmidt mannequin commented May 19, 2008

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.

@vschmidt vschmidt mannequin added the type-feature A feature request or enhancement label May 19, 2008
@vsajip
Copy link
Member

vsajip commented May 20, 2008

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).

@vsajip vsajip closed this as completed May 20, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant