From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Zonov Subject: Clean logs for all tasks Date: Wed, 19 Sep 2012 23:44:24 +0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f839b271ece5d04ca133d32 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQCW-0002va-0f for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 15:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEQCU-0000vS-Qn for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 15:44:47 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:35416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQCU-0000uu-Ig for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 15:44:46 -0400 Received: by ied10 with SMTP id 10so2461556ied.0 for ; Wed, 19 Sep 2012 12:44:45 -0700 (PDT) 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: emacs-orgmode@gnu.org --e89a8f839b271ece5d04ca133d32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I have little question. Does cleaning logs feature exist in Org mode now? I didn't find anything similar. 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. Thanks. --=20 *=D0=98=D0=BB=D1=8C=D1=8F =D0=97=D0=BE=D0=BD=D0=BE=D0=B2* (*Ilya Zonov*) ak= a *puzan* =D0=9D=D0=B8=D0=B6=D0=BD=D0=B8=D0=B9 =D0=9D=D0=BE=D0=B2=D0=B3=D0=BE=D1=80= =D0=BE=D0=B4, =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D1=8F (Nizhny Novgorod, Russia= ) --e89a8f839b271ece5d04ca133d32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello!

I have little question. Does cleaning logs feature exist in O= rg mode now? I didn't find anything similar.

I have calendar.org file with some tasks which should be d= one 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.

Thanks.

--
=D0=98=D0=BB=D1=8C=D1=8F = =D0=97=D0=BE=D0=BD=D0=BE=D0=B2 (Ilya Zonov) aka puzan
= =D0=9D=D0=B8=D0=B6=D0=BD=D0=B8=D0=B9 =D0=9D=D0=BE=D0=B2=D0=B3=D0=BE=D1=80= =D0=BE=D0=B4, =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D1=8F (Nizhny Novgorod, Russia)

--e89a8f839b271ece5d04ca133d32-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Clean logs for all tasks Date: Wed, 19 Sep 2012 13:12:53 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQdq-0003YG-3j for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 16:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEQdi-0001cw-1A for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 16:13:02 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:59878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQdh-0001cc-RY for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 16:12:53 -0400 Received: by obhx4 with SMTP id x4so1635128obh.0 for ; Wed, 19 Sep 2012 13:12:53 -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, 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Clean logs for all tasks Date: Fri, 21 Sep 2012 10:51:44 +0200 Message-ID: <874nmrkbbz.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEyxf-0003Ju-GJ for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 04:51:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEyxe-0006P5-Le for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 04:51:47 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:56339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEyxe-0006Ov-FE for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 04:51:46 -0400 Received: by wgbdt14 with SMTP id dt14so1851635wgb.30 for ; Fri, 21 Sep 2012 01:51:45 -0700 (PDT) In-Reply-To: (Ilya Zonov's message of "Wed, 19 Sep 2012 23:44:24 +0400") 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, 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Zonov Subject: Re: Clean logs for all tasks Date: Fri, 21 Sep 2012 14:02:23 +0400 Message-ID: References: <874nmrkbbz.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae934051747c65d04ca33573a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF04c-0002ff-7v for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 06:03:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF04K-0007w1-Sk for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 06:03:02 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:45143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF04K-0007vk-Np for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 06:02:44 -0400 Received: by ied10 with SMTP id 10so5737716ied.0 for ; Fri, 21 Sep 2012 03:02:43 -0700 (PDT) In-Reply-To: <874nmrkbbz.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org --14dae934051747c65d04ca33573a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. --=20 *=D0=98=D0=BB=D1=8C=D1=8F =D0=97=D0=BE=D0=BD=D0=BE=D0=B2* (*Ilya Zonov*) ak= a *puzan* =D0=9D=D0=B8=D0=B6=D0=BD=D0=B8=D0=B9 =D0=9D=D0=BE=D0=B2=D0=B3=D0=BE=D1=80= =D0=BE=D0=B4, =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D1=8F (Nizhny Novgorod, Russia= ) --14dae934051747c65d04ca33573a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Bastien,

On Fri, Sep 21, 2012 at 12:51= PM, Bastien <bzg@altern.org> wrote:

Would be nice. =C2=A0Let us know how it goes,


I'll be on vacation next week in S= pain. So I will look in this only in October. I'll write when I have so= me results.

--
=D0=98=D0=BB=D1=8C=D1=8F =D0=97= =D0=BE=D0=BD=D0=BE=D0=B2 (Ilya Zonov) aka puzan
=D0=9D=D0=B8=D0=B6=D0=BD=D0=B8=D0=B9 =D0=9D=D0=BE=D0=B2=D0=B3=D0=BE=D1=80= =D0=BE=D0=B4, =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D1=8F (Nizhny Novgorod, Russia)

--14dae934051747c65d04ca33573a-- 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