java.lang.Object
io.jstach.rainbowgum.jdk.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jstach.rainbowgum.spi.RainbowGumServiceProvider
RainbowGumServiceProvider.Configurator, RainbowGumServiceProvider.Pass, RainbowGumServiceProvider.PropertiesProvider, RainbowGumServiceProvider.RainbowGumProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIf true will not install the JUL handler.static final StringIf true will not set the root loggers level to whatever the curreint rainbow gums global level default is.Fields inherited from interface io.jstach.rainbowgum.spi.RainbowGumServiceProvider
PASSESFields inherited from interface io.jstach.rainbowgum.spi.RainbowGumServiceProvider.Configurator
CONFIGURATOR_PASSES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanconfigure(LogConfig config, RainbowGumServiceProvider.Pass pass) Do ad-hoc initialization before RainbowGum is fully loaded.
-
Field Details
-
JUL_DISABLE_PROPERTY
If true will not install the JUL handler.- See Also:
-
JUL_LEVEL_DISABLE_PROPERTY
If true will not set the root loggers level to whatever the curreint rainbow gums global level default is.- See Also:
-
-
Constructor Details
-
JULConfigurator
public JULConfigurator()For service laoder.
-
-
Method Details
-
configure
Description copied from interface:RainbowGumServiceProvider.ConfiguratorDo ad-hoc initialization before RainbowGum is fully loaded.- Specified by:
configurein interfaceRainbowGumServiceProvider.Configurator- Parameters:
config- config.pass- info on what pass this is.- Returns:
trueif all dependencies were found.
-
close
- Specified by:
closein interfaceAutoCloseable
-