Package org.apache.wicket.protocol.http
Class RequestLogger
- java.lang.Object
-
- org.apache.wicket.protocol.http.AbstractRequestLogger
-
- 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 theApplication.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 ofIRequestHandler
was the event target and whatIRequestHandler
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 org.apache.wicket.devutils.inspector.InspectorBug that shows the org.apache.wicket.devutils.inspector.InspectorPage with the org.apache.wicket.devutils.inspector.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
Constructors Constructor Description RequestLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, performLogging, requestTime, sessionCreated, sessionDestroyed
-
-
-
-
Constructor Detail
-
RequestLogger
public RequestLogger()
-
-
Method Detail
-
log
protected void log(IRequestLogger.RequestData rd, IRequestLogger.SessionData sd)
- Specified by:
log
in classAbstractRequestLogger
-
-