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.LocaleEventListener

    Nested classes/interfaces inherited from interface System.Logger

    System.Logger.Level
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SwingLogger
    The logger used internally by the i18n-swing module.

    Fields inherited from class dev.javai18n.core.LocalizableLogger

    delegate, I18N_LOGGER, logger, logLock, name
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructs a new SwingLogger for the specified name with the default Locale.
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SWING_LOGGER

      public static final SwingLogger SWING_LOGGER
      The logger used internally by the i18n-swing module.
  • Constructor Details

    • SwingLogger

      protected SwingLogger(String name)
      Constructs a new SwingLogger for the specified name with the default Locale.
      Parameters:
      name - the name of the logger.
  • Method Details

    • createSwingLogger

      public static SwingLogger createSwingLogger(String name)
      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.