Class LoggingUtils
java.lang.Object
io.micronaut.security.utils.LoggingUtils
Utility methods to avoid verbosity of logging statements. Mostly used to help reduce the Cognitive Complexity of
some methods.
- Author:
- Álvaro Sánchez-Mariscal
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs a message at the DEBUG level (only if it's enabled) according to the specified format and arguments.static voidlogAuthenticationAttributes(org.slf4j.Logger logger, @Nullable Authentication authentication) Logs the attributes of an authentication.
-
Method Details
-
debug
-
logAuthenticationAttributes
public static void logAuthenticationAttributes(org.slf4j.Logger logger, @Nullable Authentication authentication) Logs the attributes of an authentication. At TRACE the attribute values are logged with the token values redacted. At DEBUG only the attribute keys are logged.- Parameters:
logger- the SLF4J loggerauthentication- the authentication- Since:
- 5.4.0
-