I am trying to get my application to log to a separate file with the
following log4j.properties (server is tomcat6 in netbeans). I enabled the
following in my wicketapplication.

getRequestLoggerSettings().setRequestLoggerEnabled(true);

What I find is that catalina.{date}.out logs the requests correctly, but I
get tomcat startup info in my logfile and then nothing else.

Any ideas?

Thanks,
Pieter

/var/log/webapp/application.log
========================

2009-07-24 09:21:28,052 INFO  - ContextLoader              - Root
WebApplicationContext: initialization started
2009-07-24 09:21:28,082 INFO  - XmlWebApplicationContext   - Refreshing
org.springframework.web.context.support.xmlwebapplicationcont...@1077092:
display name [Root WebApplicationContext]; startup date [Fri Jul 24 09:21:28
CEST 2009]; root of context hierarchy
2009-07-24 09:21:28,134 INFO  - XmlBeanDefinitionReader    - Loading XML
bean definitions from ServletContext resource
[/WEB-INF/WicketApplicationDefinition.xml]
2009-07-24 09:21:28,555 INFO  - XmlWebApplicationContext   - Bean factory
for application context
[org.springframework.web.context.support.xmlwebapplicationcont...@1077092]:
org.springframework.beans.factory.support.defaultlistablebeanfact...@1ab5e0b
2009-07-24 09:21:28,582 INFO  - DefaultListableBeanFactory -
Pre-instantiating singletons in
org.springframework.beans.factory.support.defaultlistablebeanfact...@1ab5e0b:
defining beans [myDataSource,appConfig,WicketApplication]; root of factory
hierarchy
2009-07-24 09:21:29,172 INFO  - ContextLoader              - Root
WebApplicationContext: initialization completed in 1120 ms


log4j.properties
==============
log4j.rootLogger=INFO, file

log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.maxFileSize=100KB
log4j.appender.file.maxBackupIndex=5
log4j.appender.file.File=/var/log/${application.name}/application.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %-5p - %-26.26c{1} - %m\n


log4j.catagory.org.apache.wicket.protocol.http.RequestLogger=INFO
log4j.logger.org.apache.wicket=INFO
log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO
log4j.logger.org.apache.wicket.version=INFO
log4j.logger.org.apache.wicket.RequestCycle=INFO

-- 
Pieter Claassen

Reply via email to