Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 69337 invoked from network); 3 Nov 2007 12:29:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2007 12:29:37 -0000 Received: (qmail 68390 invoked by uid 500); 3 Nov 2007 12:29:25 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 68382 invoked by uid 500); 3 Nov 2007 12:29:25 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 68371 invoked by uid 99); 3 Nov 2007 12:29:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2007 05:29:24 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajikacc@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2007 12:29:28 +0000 Received: by py-out-1112.google.com with SMTP id a25so2085496pyi for ; Sat, 03 Nov 2007 05:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=tPhwsAOQQWVALaO5Wz2aJLw5u/5DmZNAxPbul8J5P+I=; b=ZdGmuTQXwJTXayKMD6nCvSTs6f4O9EFnZdTOBVAlFZOwG275iVizfsnYPCQOpvy8/1jA6K2d8j9ARhVgftFWKUAJoAfwWkbG+HEexloDeHwaCOHgBnG5Z1vjCfSyg8Nclo2paCOR5XjsR4PsxUJ5XhnoW9aH0qCCymZQfTyxDNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fo2Vk11MKdrKztLFwcGl7BxuY2IN8rIVbg6nlITNzD0YqFbKRGuxUDJIy4Zjc9sLOOOEkzKZcpmk9DMg6N7QRgHWnoS+r5m0kARQ6Df1rBoIPrSWY0Fvck9Qa70Jd3zt3Luana4Z1wSWigd0/bGv+qPGMc/MGuRBtwYgMiJRo0k= Received: by 10.142.194.1 with SMTP id r1mr755679wff.1194092945715; Sat, 03 Nov 2007 05:29:05 -0700 (PDT) Received: by 10.142.213.7 with HTTP; Sat, 3 Nov 2007 05:29:05 -0700 (PDT) Message-ID: <696bc1d50711030529s2e4cccb3ke2cacb3b8dfc1d5c@mail.gmail.com> Date: Sat, 3 Nov 2007 17:59:05 +0530 From: "Rajika Kumarasiri" To: "Apache AXIS C Developers List" Subject: Re: maximum log file size 1M In-Reply-To: <87d4urjzjz.fsf@etch.wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13290_30112301.1194092945693" References: <472C111B.3060306@gmail.com> <87d4urjzjz.fsf@etch.wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_13290_30112301.1194092945693 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hello, 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. Rajika 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: axis-c-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-dev-help@ws.apache.org > > -- comp.lang.c - http://groups.google.com/group/comp.lang.c/topics ------=_Part_13290_30112301.1194092945693 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hello,
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.

Rajika

On 11/3/07, Dinesh Premalal <xydinesh@gmail.com > wrote:
Hi,

Samisa Abeysinghe < samisa.abeysinghe@gmail.com> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org




--
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics ------=_Part_13290_30112301.1194092945693--