Project

General

Profile

Actions

Enhancement #244

open

configurable timestamp format and/or log line format

Added by Selene Scriven over 12 years ago. Updated 3 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
Start date:
2011-09-05
Due date:
% Done:

100%

Estimated time:
Patch Available:
Yes
Found in Versions:
Confirmed:
Yes
Branch:
Security:
No
Help Needed:

Description

I really, really want to keep all my logs in a consistent format. For every other system, I use the ISO standard YYYY-mm-dd HH:MM:SS format. It has the values in order of most to least significant, like regular numbers, it can be sorted correctly with /usr/bin/sort, and it's really the only date format which makes sense to me.

However, bip is hardcoded to use dd-mm-YYYY HH:MM:SS, which means I have to post-process logs to get them into a consistent, sortable format. And when I looked at how much work it'd be to change this, it appears to be hardcoded in multiple places and in ways which are non-trivial to fix.

Could someone replace the hardcoded timestamp format with something user-configurable?

Additionally, it would be kind of nice to be able to configure the format of the entire log line, to make it consistent with the IRC proxies I've used in the past. However, the current format isn't bad, and it's not a big deal. It's mostly just the timestamp format which bugs me.

Actions #1

Updated by Loïc Gomez about 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Loïc Gomez
  • Target version set to 0.10.0

Looking into this.

Actions #3

Updated by Loïc Gomez 3 months ago

  • Patch Available changed from No to Yes
  • Confirmed changed from No to Yes

Hi,

The change is up for review in #799!

Actions #4

Updated by Loïc Gomez 3 months ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF