emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Clean logs for all tasks
@ 2012-09-19 19:44 Ilya Zonov
  2012-09-19 20:12 ` Samuel Wales
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ilya Zonov @ 2012-09-19 19:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

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.

-- 
*Илья Зонов* (*Ilya Zonov*) aka *puzan*
Нижний Новгород, Россия (Nizhny Novgorod, Russia)

[-- Attachment #2: Type: text/html, Size: 762 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clean logs for all tasks
  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-10-02 14:48 ` Michael Brand
  2 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2012-09-19 20:12 UTC (permalink / raw)
  To: Ilya Zonov; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clean logs for all tasks
  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
  2 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2012-09-21  8:51 UTC (permalink / raw)
  To: Ilya Zonov; +Cc: emacs-orgmode

Hi Ilya,

Ilya Zonov <izonov@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clean logs for all tasks
  2012-09-21  8:51 ` Bastien
@ 2012-09-21 10:02   ` Ilya Zonov
  0 siblings, 0 replies; 5+ messages in thread
From: Ilya Zonov @ 2012-09-21 10:02 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

Hi Bastien,

On Fri, Sep 21, 2012 at 12:51 PM, Bastien <bzg@altern.org> 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)

[-- Attachment #2: Type: text/html, Size: 813 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clean logs for all tasks
  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-10-02 14:48 ` Michael Brand
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Brand @ 2012-10-02 14:48 UTC (permalink / raw)
  To: Ilya Zonov; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-02 14:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).