Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #126

Re: Limiting the the size of log files

From Bob Latham <bob@sick-of-spam.invalid>
Subject Re: Limiting the the size of log files
Newsgroups comp.sys.acorn.programmer
Date 2011-03-29 15:43 +0100
Message-ID <51bb9b357dbob@sick-of-spam.invalid> (permalink)
References <51bb7caea6bob@sick-of-spam.invalid> <mpro.litgto0037k7o033o@wingsandbeaks.org.uk.invalid> <51bb8c2ee0bob@sick-of-spam.invalid> <mpro.litl1z006h2um033o@wingsandbeaks.org.uk.invalid>
Organization None

Show all headers | View raw


In article <mpro.litl1z006h2um033o@wingsandbeaks.org.uk.invalid>,
   Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk>
wrote:
> Bob Latham <bob@sick-of-spam.invalid> wrote:

> > In article <mpro.litgto0037k7o033o@wingsandbeaks.org.uk.invalid>,
> >    Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk>
> > wrote:

[Snip]

> > I take your point. I just find that if I don't keep trimming these
> > files by hand backups take ages backing up huge log files.

> Sure but if the file is archived every day, 

Some chance of that. :-)

> the current one won't ever get huge.  And you don't need to make
> multiple backups of those already archived.

Archiving is done at best once a month. Don't have the time for more than
that.

> > In addition, I've never found I needed more than a couple of days of
> > logging.

> You surprise me.  You use every app every day?  The reason to keep lots
> of logs is to give you a good chance that you still have a log from when
> something was last used ok - which could be weeks or months ago.

> Even in normal use if you're ill or on holiday your machine might not
> get used for a few weeks.  You don't want the first thing that happens
> when it's next booted is that all the old logs are deleted.

Which is exactly why I said I would trim the log based on its size not the
dates contained within.

> > I'm also concerned about my wife's machine ceasing to function whilst
> > I'm not there due to a humungous log file. The application in question
> > does not appear to offer any log file management facilities.

> It's too much like hard work using per-app log managers.  It's far
> easier to use your own code to move any app's log to an archive and (if
> necessary) place an empty log file where the app can then add to it.

We log to an NSLU2 which takes about 40 minutes from switch on to become
useable. Yes, I would like something better but that applies to just about
everything I own.


Cheers,

Bob.

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-29 12:59 +0100
  Re: Limiting the the size of log files Ian Hamilton <Ian.Hamilton@AAUG.net> - 2011-03-29 13:26 +0100
    Re: Limiting the the size of log files Dr Peter Young <pnyoung@ormail.co.uk> - 2011-03-29 15:02 +0100
    Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-29 15:37 +0100
    Re: Limiting the the size of log files Steve Fryatt <news@stevefryatt.org.uk> - 2011-03-29 22:24 +0100
      Re: Limiting the the size of log files Ian Hamilton <Ian.Hamilton@AAUG.net> - 2011-03-30 06:34 +0100
  Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-03-29 13:51 +0100
    Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-29 15:43 +0100
      Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-03-29 16:10 +0100
      Re: Limiting the the size of log files "Ste (news)" <steve@revi11.plus.com> - 2011-03-31 13:24 +0100
        Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-31 15:13 +0100
          Re: Limiting the the size of log files Dave Higton <davehigton@dsl.pipex.com> - 2011-03-31 20:14 +0100
            Re: Limiting the the size of log files Matthew Phillips <mnews@sinenomine.freeserve.co.uk> - 2011-03-31 21:27 +0100
            Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-03-31 21:45 +0100
              Re: Limiting the the size of log files Dave Higton <davehigton@dsl.pipex.com> - 2011-04-01 21:41 +0100
                Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-04-02 00:33 +0100

csiph-web