From: Michael Brand <michael.ch.brand@gmail.com>
To: Ilya Zonov <izonov@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Clean logs for all tasks
Date: Tue, 2 Oct 2012 16:48:44 +0200 [thread overview]
Message-ID: <CALn3zojhiSqc2kRUyBuF1KNK2USavpeY7dMUWsxwgN-eH8ywHA@mail.gmail.com> (raw)
In-Reply-To: <CAHAVt8dKsoro2hQtG6tfv8zK4skmgrPH_moukin5bs_8dtVstg@mail.gmail.com>
Hi Ilya
On Wed, Sep 19, 2012 at 9:44 PM, Ilya Zonov <izonov@gmail.com> 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
prev parent reply other threads:[~2012-10-02 14:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 19:44 Clean logs for all tasks Ilya Zonov
2012-09-19 20:12 ` Samuel Wales
2012-09-21 8:51 ` Bastien
2012-09-21 10:02 ` Ilya Zonov
2012-10-02 14:48 ` Michael Brand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALn3zojhiSqc2kRUyBuF1KNK2USavpeY7dMUWsxwgN-eH8ywHA@mail.gmail.com \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=izonov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).