axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajika Kumarasiri" <>
Subject Re: maximum log file size 1M
Date Sat, 03 Nov 2007 12:29:05 GMT
The most common way of handling log file growth is via a rotation procedure.

First we define how many old copies of the log file we want to create/keep,
and the rate at which they should be rotate(once a day, once a week and so
on). When we rotate a given log file, the original file should rename to
have a '.1' suffix, rename the old '.1' file to have a '.2' suffix, and so
on. The last copy of the log file (with suffix '.n') should be erased. The
renaming process is done from last to first, otherwise we will end up with
'n' copies of the current log file. Once done, we create a new, empty log
file, with the same access permissions as the original log file.


On 11/3/07, Dinesh Premalal <> wrote:
> Hi,
> Samisa Abeysinghe <> writes:
> > I saw this commit where the maximum log file size is set to 1M.
> >
> > I am just curious to know, what happens when it exceeds 1M?
> AFAIK, that file is backed up (axis2.log.1) and start new file
> (axis2.log). Then , if new one also exceeds 1M, it is backed up over
> writing old backed up file.
> Finally, system has only two files, current log file (axis2.log) and
> immediate
> recent log file (axis2.log.1).
> >
> > Also, for a production system, I deem that 1M is too small.
> I guess not :), I looked at some other logs (#ls -lah
> /var/log/ ) they even hardly exceeds 300K.
> Dinesh
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

comp.lang.c -

View raw message