log_irssi should emit "--- Day changed" lines

Bug #402497 reported by Dato Simó
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CtrlProxy
Triaged
Wishlist
Unassigned

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)
Changed in ctrlproxy:
status: In Progress → Triaged
Jelmer Vernooij (jelmer)
Changed in ctrlproxy:
importance: Unknown → Wishlist
Jelmer Vernooij (jelmer)
Changed in ctrlproxy:
assignee: Jelmer Vernooij (jelmer) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.