org.slf4j.cal10n
.See: Description
Class | Description |
---|---|
LocalizedLogger |
A logger implementation which formats and localizes messages before
forwarding them to an underlying SLF4J
Logger . |
LocalizedLoggerFactory |
A factory of
LocalizedLogger instances which obtains a SLF4J
Logger by calling the appropriate LoggerFactory method and
wrapping it in an instance of LocalizedLogger . |
LocalizedMarker |
An implementation of SLF4J marker that contains a
LocalizableMessage
and does not allow to manage references to other markers. |
org.slf4j.cal10n
. Using the ForgeRock I18N framework for logging
ensures that message type safety is enforced at compile time.
Example usage:
import static com.example.AppMessages.EXAMPLE_MESSAGE; ... // EXAMPLE_MESSAGE has parameters String and Integer LocalizedLogger logger = LocalizedLogger.getLocalizedLogger(this.class); logger.error(EXAMPLE_MESSAGE, "a string", 123);
Copyright 2010-2022 ForgeRock AS.