From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Clean logs for all tasks Date: Tue, 2 Oct 2012 16:48:44 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ3mE-0006Hx-IX for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 10:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJ3mA-0005Gt-F0 for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 10:48:50 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:59670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ3mA-0005Go-7G for emacs-orgmode@gnu.org; Tue, 02 Oct 2012 10:48:46 -0400 Received: by lbok6 with SMTP id k6so5584797lbo.0 for ; Tue, 02 Oct 2012 07:48:44 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ilya Zonov Cc: emacs-orgmode@gnu.org 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 o= r > week. Logging is on for them (in :LOGBOOK: drawer). After few month I hav= e > too big file with many logs and only ten tasks. So I want to clean up log= s > 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 :: =93:LOG_INTO_DRAWER: 5=94 would mean logging is on and all logs but the newest 5 will be removed - age :: =93:LOG_INTO_DRAWER: 2w=94 would mean logging is on and all logs older than two weeks will be removed - date :: =93:LOG_INTO_DRAWER: [2012-01-01 Sun]=94 would mean logging is on and all logs older than this date will be removed =93age=94 is my favourite for the first approach of an implementation because I estimate it to be the best compromise between =93simplicity=94 and usability. =93number of entries=94 would be comparably useful for me but needs updating some state information when parsing and a second pass to remove the logs. =93date=94 I mentioned more for completeness but could also be useful together with occasional manual backup to keep log history. Michael