Package org.keycloak.logging
Class NoopMappedDiagnosticContextProvider
java.lang.Object
org.keycloak.logging.NoopMappedDiagnosticContextProvider
- All Implemented Interfaces:
MappedDiagnosticContextProvider,Provider
public class NoopMappedDiagnosticContextProvider
extends Object
implements MappedDiagnosticContextProvider
-
Field Summary
Fields inherited from interface org.keycloak.logging.MappedDiagnosticContextProvider
MDC_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidupdate(KeycloakContext keycloakContext, ClientModel client) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(KeycloakContext keycloakContext, OrganizationModel organization) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(KeycloakContext keycloakContext, RealmModel realm) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(KeycloakContext keycloakContext, UserSessionModel userSession) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.voidupdate(KeycloakContext keycloakContext, AuthenticationSessionModel session) Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
-
Constructor Details
-
NoopMappedDiagnosticContextProvider
public NoopMappedDiagnosticContextProvider()
-
-
Method Details
-
update
Description copied from interface:MappedDiagnosticContextProviderUpdates 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.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullsession- the authentication session
-
update
Description copied from interface:MappedDiagnosticContextProviderUpdates 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.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullrealm- the realm
-
update
Description copied from interface:MappedDiagnosticContextProviderUpdates 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.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullclient- the client
-
update
Description copied from interface:MappedDiagnosticContextProviderUpdates 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.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nullorganization- the organization
-
update
Description copied from interface:MappedDiagnosticContextProviderUpdates 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.- Specified by:
updatein interfaceMappedDiagnosticContextProvider- Parameters:
keycloakContext- the current Keycloak context, never nulluserSession- the user session
-
close
public void close()
-