Hi all,
I'm having a small problem trying to log to an additional file with a
 org.apache.log4j.FileAppender.

Problem: Does not log Wicket stuff to the file. For instance this message:

"WARNING: Tried to retrieve a localized string for a component that has not
yet been added to the page.".....

Is written to the StdOut which netbeans shows in its output window. But this
message doesn't appears in my MyLog.log file.

I have this log4j property file:

log4j.debug=false log4j.rootLogger=INFO,Stdout,Fileappender
log4j.logger.org=INFO
log4j.logger.com=INFO log4j.logger.net=INFO log4j.logger.nl=INFO
log4j.logger.org.apache.wicket=INFO
log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO
log4j.logger.org.apache.catalina.cluster=INFO
log4j.logger.org.apache.wicket.version=INFO
log4j.logger.org.apache.wicket.RequestCycle=INFO
log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n #
Additional configuration
log4j.appender.Fileappender=org.apache.log4j.FileAppender
log4j.appender.Fileappender.file=${mylog.log.dir}/logs/MyLog.log
log4j.appender.Fileappender.layout=org.apache.log4j.PatternLayout
log4j.appender.Fileappender.layout.conversionPattern=%d [%t] %p - %m%n

Is this correct?

Can anyone comment?

Thanks,
f(t)

Reply via email to