-
- All Superinterfaces:
ContextAware
- All Known Implementing Classes:
BasicConfigurator,DefaultJoranConfigurator,SerializedModelConfigurator
public interface Configurator extends ContextAware
Allows programmatic initialization and configuration of Logback. The ServiceLoader is typically used to instantiate implementations and thus implementations will need to follow the guidelines of the ServiceLoader, in particular the no-arg constructor requirement.
The return type of
configurewas changed from 'void' toConfigurator.ExecutionStatusin logback version 1.3.0.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConfigurator.ExecutionStatus
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Configurator.ExecutionStatusconfigure(LoggerContext context)Implementations of this method may expect that theLoggerContextis set withContextAware.setContext(ch.qos.logback.core.Context)before this method is invoked.-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Method Detail
-
configure
Configurator.ExecutionStatus configure(LoggerContext context)
Implementations of this method may expect that theLoggerContextis set withContextAware.setContext(ch.qos.logback.core.Context)before this method is invoked.
-
-