Package org.forgerock.i18n.jul
package org.forgerock.i18n.jul
This package provides a localization mechanism for
java.util.logging. 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("mylogger");
logger.warning(EXAMPLE_MESSAGE, "a string", 123);
-
ClassesClassDescriptionA logger implementation which formats and localizes messages before forwarding them to an underlying Java
Logger.A factory ofLocalizedLoggerinstances which obtains a JavaLoggerby calling the appropriateLoggerfactory method and wrapping it in an instance ofLocalizedLogger.