Skip to content

Logging TimedRotatingFileHandler Feature Request #47163

Closed

Description

@vschmidt
mannequin
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']

Activity

  1. vschmidt commented on May 19, 2008

    vschmidtmannequin
    MannequinAuthor

    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.

  2. added
    type-feature
    on May 19, 2008
  3. vsajip commented on May 20, 2008

    @vsajip
    Member

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

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type-feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions