Package org.keycloak.events.log
Class JBossLoggingEventListenerProvider
java.lang.Object
org.keycloak.events.log.JBossLoggingEventListenerProvider
- All Implemented Interfaces:
EventListenerProvider
,Provider
- Author:
- Stian Thorgersen
-
Constructor Summary
ConstructorDescriptionJBossLoggingEventListenerProvider
(KeycloakSession session, org.jboss.logging.Logger logger, org.jboss.logging.Logger.Level successLevel, org.jboss.logging.Logger.Level errorLevel, Character quotes, boolean sanitize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
onEvent
(AdminEvent adminEvent, boolean includeRepresentation) Called when an admin event occurs e.g.void
Called when a user event occurs e.g.
-
Constructor Details
-
JBossLoggingEventListenerProvider
public JBossLoggingEventListenerProvider(KeycloakSession session, org.jboss.logging.Logger logger, org.jboss.logging.Logger.Level successLevel, org.jboss.logging.Logger.Level errorLevel, Character quotes, boolean sanitize)
-
-
Method Details
-
onEvent
Description copied from interface:EventListenerProvider
Called when a user event occurs e.g. log in, register. Note this method should not do any action that cannot be rolled back, seeEventListenerProvider
javadoc for more details.- Specified by:
onEvent
in interfaceEventListenerProvider
- Parameters:
event
- to be triggered
-
onEvent
Description copied from interface:EventListenerProvider
Called when an admin event occurs e.g. a client was updated/deleted. Note this method should not do any action that cannot be rolled back, seeEventListenerProvider
javadoc for more details.- Specified by:
onEvent
in interfaceEventListenerProvider
- Parameters:
adminEvent
- to be triggeredincludeRepresentation
- when false, event listener should NOT include representation field in the resulting action
-
close
public void close()
-