logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Gonzalez" <jagon...@gmail.com>
Subject Re: roller doesn't roll
Date Thu, 23 Mar 2006 22:16:56 GMT
Try not creating any files (but the directory must be writable by tomcat)

On 3/23/06, Glenn Holmer <gholmer@weycogroup.com> wrote:
>
> I've got several apps using a RollingFileAppender, but one keeps
> overwriting the first file instead of rolling over to .1, .2, .3, etc.
> He is a web app running under Tomcat, and this is how he is configured:
>
> log4j-1.2.9.jar is in /WEB-INF/classes of the webapp
> config file is in /WEB-INF/classes/com/weycogroup/...
> PropertyConfigurator is called in a ServletContextListener
>
> this is his config file:
>
> log4j.rootCategory=INFO, roller
>
> log4j.appender.roller=org.apache.log4j.RollingFileAppender
> log4j.appender.roller.File=/var/log/xxxxx.log
>
> log4j.appender.roller.MaxFileSize=10240KB
> log4j.appender.roller.MaxBackupIndex=10
>
> log4j.appender.roller.layout=org.apache.log4j.PatternLayout
> log4j.appender.roller.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}
> %-5p %c{1} %M:%L %m%n
>
> I created all eleven files in /var/log and gave Tomcat permission to
> write to them.  Logging works normally except for the roller not
> rolling.  What have I done wrong?
>
> --
> ____________________________________________________________
> Glenn Holmer                          gholmer@weycogroup.com
> Software Engineer                        phone: 414-908-1809
> Weyco Group, Inc.                          fax: 414-908-1601
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
Javier González Nicolini

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message