Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 65762 invoked from network); 7 Jun 2006 13:54:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2006 13:54:49 -0000 Received: (qmail 77264 invoked by uid 500); 7 Jun 2006 13:54:46 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 77231 invoked by uid 500); 7 Jun 2006 13:54:46 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 77220 invoked by uid 99); 7 Jun 2006 13:54:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 06:54:46 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stauffer.james@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 06:54:45 -0700 Received: by nf-out-0910.google.com with SMTP id p48so149836nfa for ; Wed, 07 Jun 2006 06:54:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qjErG8gQGJptuItLeTSRFQA6bhKP+4f3mmYZcdCJR+KkNcBlMGdqowVaqg9SElRrl3HsyaaSLITae/lndac5bpVV+mSvJWrIUj7xdHx6GY1bUcjy2531aAoV7Zn48FEJ3OXmhz27wnEZuXq6fHPVCcNk2smcxjPoIf+o35LNIw8= Received: by 10.49.7.1 with SMTP id k1mr384373nfi; Wed, 07 Jun 2006 06:54:24 -0700 (PDT) Received: by 10.49.21.17 with HTTP; Wed, 7 Jun 2006 06:54:24 -0700 (PDT) Message-ID: Date: Wed, 7 Jun 2006 08:54:24 -0500 From: "James Stauffer" To: "Log4J Users List" Subject: Re: DailyRollingFileAppender configuration In-Reply-To: <7598b87a0606061847o2a300893pccc83a04b80b5b09@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7598b87a0606061847o2a300893pccc83a04b80b5b09@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You would have to write your own appender to achieve that. On 6/6/06, wolverine my wrote: > Hi > > With the following Log4j configuration > > log4j.appender.R=org.apache.log4j.DailyRollingFileAppender > log4j.appender.R.File=sample.log > log4j.appender.R.DatePattern='.'yyyy-MM-dd > > > The sample.log will be copied to sample.log.2006-06-06, example, > > sample.log > sample.log.2006-06-06 > sample.log.2006-06-05 > > How can we configure the LOg4j so that the file will be copied as > sample.2006-06-06.log? > For example, > > sample.log > sample.2006-06-06.log > sample.2006-06-05.log > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > -- James Stauffer Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org