Isn't Log4J shipped with the quick-start?

Create yourself a quick-start and analyze it:
http://wicket.apache.org/start/quickstart.html

PS: You can also check the initialization related topics as well as your
first stop for Wicket's doc via the Wicket Free Guide at:
http://wicket.apache.org/learn/books/freeguide.html

~ Thank you,
  Paul Bors


-----Original Message-----
From: Jens Jahnke [mailto:[email protected]] 
Sent: Tuesday, August 06, 2013 4:44 AM
To: [email protected]
Subject: Documentation for RequestLogger

Hi,

I'd like to know if there is an official documentation for RequestLogger
anywhere?

I found several small bits on the net, but nothing that gives me a clue how
to actually do some logging.

I know that I have to initialise it somehow like this:

IRequestLoggerSettings requestLogger =
Application.get().getRequestLoggerSettings();
requestLogger.setRequestLoggerEnabled(true);

But where do I have to put this initialisation? I've put it into my apps
init() but it does nothing except creating an empty log file.

My log4j.properties:

log4j.category.org.apache.wicket.protocol.http.RequestLogger=INFO,RequestLog
ger
log4j.additivity.org.apache.wicket.protocol.http.RequestLogger=false
log4j.appender.RequestLogger=org.apache.log4j.RollingFileAppender
log4j.appender.RequestLogger.File=${catalina.home}/logs/wicket-requests.log
log4j.appender.RequestLogger.MaxFileSize=10MB
log4j.appender.RequestLogger.MaxBackupIndex=10
log4j.appender.RequestLogger.layout=org.apache.log4j.PatternLayout
log4j.appender.RequestLogger.layout.ConversionPattern=%d{ISO8601} %-5p-
%-26.26c{1} - %m\n


Regards,

Jens

--
06. Ernting 2013, 10:38
Homepage : http://www.jan0sch.de

Kirk to Enterprise...



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to