log_irssi should emit "--- Day changed" lines

Bug #402497 reported by Dato Simó on 2008-09-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

--- Day changed Thu Jul 03 2008

Revision history for this message
Dato Simó (dato) wrote :

Hm. Let me clarify a bit. The point is that when reading ctrlproxy's irssi-formatted logs, it should be possible to find out with ease what date a particular line belongs to. In real irssi logs, I seach backwards for `/^---/`, which is either a "Log opened DATE" line, or a "Day changed DATE" one.

Regarding ctrlproxy, how does the following sound? The first time a log file is written to, emit a "Log opened DATE" line; store somewhere the timestamp (or, as an optimization, store the timestamp of 0:00 hours of the next day). Then, instead of emiting "Day changed" lines on each day change, it only does so when writing again, if the day has indeed changed since the stored timestamp.

To mimic irssi a bit more closely, another option would be to only emit "Day changed" when writing not after than some sensible amount of time after the previous time we wrote; if not, just emit another "Log opened" line.

(Wow, that was messy, but HTH. Feel free to grab me on IRC if you want.)

Jelmer Vernooij (jelmer) on 2009-07-23
Changed in ctrlproxy:
status: In Progress → Triaged
Jelmer Vernooij (jelmer) on 2009-09-08
Changed in ctrlproxy:
importance: Unknown → Wishlist
Jelmer Vernooij (jelmer) on 2010-09-09
Changed in ctrlproxy:
assignee: Jelmer Vernooij (jelmer) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers