Re: File Appender in log4j

2006-11-30 Thread Curt Arnold
On Nov 29, 2006, at 10:11 PM, ying lcs wrote: I try it, but I get this error " log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender. I put this line in the log4j properties file. log4j.appender.ACCESS.MaxBackupIndex=7 On 11/28/06, Shuh Chang <[EMAIL PROT

Re: File Appender in log4j

2006-11-29 Thread ying lcs
can set the MaxBackupIndex parameter like this: log4j.appender.drfa.MaxBackupIndex=7 -Original Message- From: ying lcs [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 10:42 PM To: Log4J Users List Subject: Re: File Appender in log4j Thanks for the advice. Can you please tell me how

RE: File Appender in log4j

2006-11-28 Thread Shuh Chang
I think you can set the MaxBackupIndex parameter like this: log4j.appender.drfa.MaxBackupIndex=7 -Original Message- From: ying lcs [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 10:42 PM To: Log4J Users List Subject: Re: File Appender in log4j Thanks for the advice. Can

Re: File Appender in log4j

2006-11-27 Thread ying lcs
Thanks for the advice. Can you please tell me how can i only keep the last 7 days of the log ? Thank you. On 11/21/06, Curt Arnold <[EMAIL PROTECTED]> wrote: On Nov 21, 2006, at 4:21 PM, ying lcs wrote: > Hi, > > Can you please tell me how can I configure file appender so that it > writes t

Re: File Appender in log4j

2006-11-22 Thread Chris Dillon
Curt Arnold apache.org> writes: > On Nov 21, 2006, at 4:21 PM, ying lcs wrote: > > > Hi, > > > > Can you please tell me how can I configure file appender so that it > > writes to 1 log file per data and have the old one stays? > > > > Thank you. > > I guessing that you meant "1 log file per DAY

Re: File Appender in log4j

2006-11-21 Thread Curt Arnold
On Nov 21, 2006, at 4:21 PM, ying lcs wrote: Hi, Can you please tell me how can I configure file appender so that it writes to 1 log file per data and have the old one stays? Thank you. I guessing that you meant "1 log file per DAY". If that is your request, you could use a DailyRolling