emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Clean logs for all tasks


From: Michael Brand
Subject: Re: [O] Clean logs for all tasks
Date: Tue, 2 Oct 2012 16:48:44 +0200

Hi Ilya

On Wed, Sep 19, 2012 at 9:44 PM, Ilya Zonov <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]