Re: [O] Clean logs for all tasks
Hi Ilya On Wed, Sep 19, 2012 at 9:44 PM, Ilya Zonov wrote: > I have calendar.org file with some tasks which should be done every day or > week. Logging is on for them (in :LOGBOOK: drawer). After few month I have > too big file with many logs and only ten tasks. So I want to clean up logs > which are older one or two month for example. > > If there are no cleaning logs feature in org-mode, I will try to write it. This is something I always wished to have. If I don't miss too much, LOG_INTO_DRAWER is now supported to be just nil or t. I suggest to extend it like this: - number of entries :: “:LOG_INTO_DRAWER: 5” would mean logging is on and all logs but the newest 5 will be removed - age :: “:LOG_INTO_DRAWER: 2w” would mean logging is on and all logs older than two weeks will be removed - date :: “:LOG_INTO_DRAWER: [2012-01-01 Sun]” would mean logging is on and all logs older than this date will be removed “age” is my favourite for the first approach of an implementation because I estimate it to be the best compromise between “simplicity” and usability. “number of entries” would be comparably useful for me but needs updating some state information when parsing and a second pass to remove the logs. “date” I mentioned more for completeness but could also be useful together with occasional manual backup to keep log history. Michael
Re: [O] Clean logs for all tasks
Hi Bastien, On Fri, Sep 21, 2012 at 12:51 PM, Bastien wrote: > > Would be nice. Let us know how it goes, > > I'll be on vacation next week in Spain. So I will look in this only in October. I'll write when I have some results. -- *Илья Зонов* (*Ilya Zonov*) aka *puzan* Нижний Новгород, Россия (Nizhny Novgorod, Russia)
Re: [O] Clean logs for all tasks
Hi Ilya, Ilya Zonov writes: > If there are no cleaning logs feature in org-mode, I will try to > write it. Would be nice. Let us know how it goes, -- Bastien
Re: [O] Clean logs for all tasks
Hi Ilya, That would be a great feature. You might want to allow for specific things to be cleaned but not others. The variable value might look like '(state clock note), for example. You might also want to allow for cleaning up until one month ago, for example. Finally, somehow putting hte old items into the archive might be desirable. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com