SessionLoggingService (interface)

Defines an API to track the status of the current sessions ("users logged on") on the system.

Multiple implementations can be registered; all will be called.

API

SessionLoggingService.java
interface SessionLoggingService {
  void log(Type type, String username, Date date, CausedBy causedBy, String sessionId)     (1)
}
1 log(Type, String, Date, CausedBy, String)

Callback to log the session.

Members

log(Type, String, Date, CausedBy, String)

Callback to log the session.

The sessionId is an internal identifier (for the Wicket viewer, its the JVM hashCode of the Wicket session).

Implementation

The framework provides a default implementation, o.a.i.applib.services.session.SessionLoggingServiceLogging that logs using log4j2.