Package org.keycloak.logging
Interface MappedDiagnosticContextProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultMappedDiagnosticContextProviderFactory
,NoopMappedDiagnosticContextProvider
Provider interface for updating the Mapped Diagnostic Context (MDC) with key/value pairs based on the current keycloak context.
All keys in the MDC will be prefixed with "kc." to avoid conflicts.
- Author:
- Björn Eickvonder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(KeycloakContext keycloakContext, ClientModel client) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.void
update
(KeycloakContext keycloakContext, OrganizationModel organization) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.void
update
(KeycloakContext keycloakContext, RealmModel realm) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.void
update
(KeycloakContext keycloakContext, UserSessionModel userSession) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.void
update
(KeycloakContext keycloakContext, AuthenticationSessionModel session) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
-
Field Details
-
MDC_PREFIX
- See Also:
-
-
Method Details
-
update
Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the authentication session property of the Keycloak context is updated.- Parameters:
keycloakContext
- the current Keycloak context, never nullsession
- the authentication session
-
update
Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the realm property of the Keycloak context is updated.- Parameters:
keycloakContext
- the current Keycloak context, never nullrealm
- the realm
-
update
Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the client property of the Keycloak context is updated.- Parameters:
keycloakContext
- the current Keycloak context, never nullclient
- the client
-
update
Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the organization property of the Keycloak context is updated.- Parameters:
keycloakContext
- the current Keycloak context, never nullorganization
- the organization
-
update
Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the user session property of the Keycloak context is updated.- Parameters:
keycloakContext
- the current Keycloak context, never nulluserSession
- the user session
-