Enhancement #244
openconfigurable timestamp format and/or log line format
100%
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.
Updated by Loïc Gomez almost 3 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.
Updated by Loïc Gomez 11 months ago
- Patch Available changed from No to Yes
- Confirmed changed from No to Yes
Hi,
The change is up for review in #799!