I want to limit the number of log files for a DailyRollingFileAppender. I
search for a parameter like maxBackupIndex (in RollingFileAppender) but can
not find one. Is there really no way to limit the number of log-Files?

What is the strategy to ensure that the (number) of log files do not
"overrun". Delete them manually?

On Wed, Feb 16, 2011 at 5:56 PM, Tatsuya Kawano <tatsuya6...@gmail.com>wrote:

> Hi,
>
> On 02/16/2011, at 4:51 PM, 陈加俊 wrote:
> > How to limit the number of logs that producted by
> DailyRollingFileAppender ?
> >
> > I find the logs are exceeding  disk apace limit.
>
>
> If you're using "log4j.properties" coming with HBase, uncomment
> MaxBackupIndex property ant change its value.
>
> # 30-day backup
> #log4j.appender.DRFA.MaxBackupIndex=30
>
>
> Also, if it's for production environment, make sure you change the logging
> level to INFO, so you can reduce the amount of the logs.
>
> log4j.logger.org.apache.hadoop.hbase=INFO
>
>
> Thanks,
>
> --
> Tatsuya Kawano (Mr.)
> Tokyo, Japan
>
> http://twitter.com/#!/tatsuya6502
>
>
>
>
>
>
>


-- 
Thanks & Best regards
jiajun

Reply via email to