Example usage for org.apache.wicket.settings RequestLoggerSettings setRecordSessionSize

List of usage examples for org.apache.wicket.settings RequestLoggerSettings setRecordSessionSize

Introduction

In this page you can find the example usage for org.apache.wicket.settings RequestLoggerSettings setRecordSessionSize.

Prototype

public RequestLoggerSettings setRecordSessionSize(boolean record) 

Source Link

Document

Enable/Disable the recording of the session size for every request.

Usage

From source file:com.evolveum.midpoint.web.security.LoggingRequestCycleListener.java

License:Apache License

public LoggingRequestCycleListener(Application application) {
    if (REQUEST_LOGGER.isDebugEnabled()) {
        RequestLoggerSettings requestLoggerSettings = application.getRequestLoggerSettings();
        requestLoggerSettings.setRequestLoggerEnabled(true);
        if (REQUEST_LOGGER.isTraceEnabled()) {
            requestLoggerSettings.setRecordSessionSize(true);
        }/*from ww  w  .j ava2s.c  om*/
    }
}