org.apache.wicket.protocol.http
Class RequestLogger

java.lang.Object
  extended by org.apache.wicket.protocol.http.AbstractRequestLogger
      extended by org.apache.wicket.protocol.http.RequestLogger
All Implemented Interfaces:
IRequestLogger

public class RequestLogger
extends AbstractRequestLogger

This is the logger class that can be set in the Application.getRequestLogger() method. If this class is set all request and live sessions will be recorded and displayed From the total created sessions, to the peak session count and the current live sessions. For the live sessions the request logger will record what request are happening what kind of IRequestHandler was the event target and what IRequestHandler was the response target. It also records what session data was touched for this and how long the request did take. To view this information live see the InspectorBug that shows the InspectorPage with the LiveSessionsPage. This implementation uses a rounded buffer for storing the request data, and strives to minimize contention on accessing the rounded buffer. At the beginning of your application start, the buffer is empty and fills up during the lifetime of the application until the window size has been reached, and new requests are written to the position containing the oldest request.

Since:
1.2

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.protocol.http.IRequestLogger
IRequestLogger.ISessionLogInfo, IRequestLogger.RequestData, IRequestLogger.SessionData
 
Constructor Summary
RequestLogger()
           
 
Method Summary
protected  void log(IRequestLogger.RequestData rd, IRequestLogger.SessionData sd)
           
 
Methods inherited from class org.apache.wicket.protocol.http.AbstractRequestLogger
addRequest, formatDate, getAverageRequestTime, getCurrentActiveRequestCount, getCurrentRequest, getLiveSessions, getPeakActiveRequestCount, getPeakSessions, getRequests, getRequestsPerMinute, getTotalCreatedSessions, logEventTarget, logRequestedUrl, logResponseTarget, objectCreated, objectRemoved, objectUpdated, requestTime, sessionCreated, sessionDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLogger

public RequestLogger()
Method Detail

log

protected void log(IRequestLogger.RequestData rd,
                   IRequestLogger.SessionData sd)
Specified by:
log in class AbstractRequestLogger


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.