Class SwingLogger
java.lang.Object
dev.javai18n.core.LocalizableLogger
dev.javai18n.swing.SwingLogger
- All Implemented Interfaces:
dev.javai18n.core.Localizable, System.Logger
public class SwingLogger
extends dev.javai18n.core.LocalizableLogger
A LocalizableLogger for the i18n-swing module. Log messages are resolved
from the SwingLoggerBundle resource bundle in this module.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.javai18n.core.Localizable
dev.javai18n.core.Localizable.LocaleEvent, dev.javai18n.core.Localizable.LocaleEventListenerNested classes/interfaces inherited from interface System.Logger
System.Logger.Level -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SwingLoggerThe logger used internally by the i18n-swing module.Fields inherited from class dev.javai18n.core.LocalizableLogger
delegate, I18N_LOGGER, logger, logLock, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSwingLogger(String name) Constructs a new SwingLogger for the specified name with the default Locale. -
Method Summary
Modifier and TypeMethodDescriptionstatic SwingLoggercreateSwingLogger(String name) A factory method that returns a SwingLogger for the specified name in the default Locale.Methods inherited from class dev.javai18n.core.LocalizableLogger
addLocaleEventListener, createLocalizableLogger, getAvailableLocales, getBundleLocale, getLogger, getName, getResourceBundle, isLoggable, log, log, log, log, log, log, log, log, removeLocaleEventListener, setBundleLocale
-
Field Details
-
SWING_LOGGER
The logger used internally by the i18n-swing module.
-
-
Constructor Details
-
SwingLogger
Constructs a new SwingLogger for the specified name with the default Locale.- Parameters:
name- the name of the logger.
-
-
Method Details
-
createSwingLogger
A factory method that returns a SwingLogger for the specified name in the default Locale.- Parameters:
name- the name of the logger.- Returns:
- A SwingLogger for the specified name in the default Locale.
-