From: Mario L. <ml...@de...> - 2002-01-30 13:45:45
|
Andras BALI <dr...@bi...> writes: > Would it be possible to be able to save timestamps in logs even when > timestamping is disabled in the buffers? I believe this is a good > idea, because in principle I really don't need timestamps, but logs > are for archiving - and it can be important to know when did the > events happen. Sounds good. > According to an IRC conversation with delYsid, this feature requires > two things to be implemented: > > 1. Make sure that *every* line of the ERC buffer has a timestamp > property -- it wasn't true for messages by me, but adding > > (put-text-property 0 (length s) `timestamp (current-time) s) > > around line #1760 seemed to help. Note that it adds the property > only to the message, not to the nick and it may be wrong with > actions different from channel text. I just had an idea. Maybe somewhere around erc-insert-hook, we can just add timestamping for ALL texts. This way we dont need to duplicate that timestamping code too much. I wanted to look at the erc-insert-hook situation anyway before 3.0, because currently we have a erc-insert-hook which has around 7 functions on it, and order is getting to get important. So this needs possibly some rewrite. Ill look at that. > 2. Write a function that saves the erc buffer line by line and > extracts the timestamp for each line from the properties, converts > it to human-readable form and adds it. Is anyone who uses logging alot interested in implementing such a function? It isnt terrible hard after all. > My lisp knowledge is unfortunately way too rough to be able to code > anything usable, hence is the subject. Any help would be appreciated. -- CYa, Mario <ml...@de...> |