Class JULConfigurator

java.lang.Object
io.jstach.rainbowgum.jul.JULConfigurator
All Implemented Interfaces:
RainbowGumServiceProvider, RainbowGumServiceProvider.Configurator, AutoCloseable

@ServiceProvider(RainbowGumServiceProvider.class) public final class JULConfigurator extends Object implements RainbowGumServiceProvider.Configurator, AutoCloseable
Will install the JUL handler if the java.logging module is available and is not alreadyi installed.
  • Field Details

    • JUL_DISABLE_PROPERTY

      public static final String JUL_DISABLE_PROPERTY
      If true will not install the JUL handler.

      Property: logging.jul.disable

      See Also:
    • JUL_LEVEL_PROPERTY

      public static final String JUL_LEVEL_PROPERTY
      Sets the level of the java.util.logging root logger. java.util.logging checks it, and any levels configured in java.util.logging itself, before an event reaches Rainbow Gum, so an event below it is not logged even if Rainbow Gum would log it. Values (case is ignored):
      • sync (default): the root level of Rainbow Gum. Events of a logger configured more verbose than the root, such as logging.level.com.example=debug with an info root, are not logged when they are below the root level.
      • none: the level is left as java.util.logging is configured, for example by logging.properties.
      • A level such as all, debug or info: that level. With all every event reaches Rainbow Gum, which then applies its own levels, at the cost of a LogRecord for every event including those Rainbow Gum does not log.

      Property: logging.jul.level

      See Also:
  • Constructor Details

  • Method Details