- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.BasicConfigurator
-
- All Implemented Interfaces:
Configurator,ContextAware
public class BasicConfigurator extends ContextAwareBase implements Configurator
BasicConfigurator configures logback-classic by attaching aConsoleAppenderto the root logger. The console appender's layout is set to aTTLLLayout.- Author:
- Ceki Gülcü
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ch.qos.logback.classic.spi.Configurator
Configurator.ExecutionStatus
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description BasicConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configurator.ExecutionStatusconfigure(LoggerContext loggerContext)Implementations of this method may expect that theLoggerContextis set withContextAware.setContext(ch.qos.logback.core.Context)before this method is invoked.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Constructor Detail
-
BasicConfigurator
public BasicConfigurator()
-
-
Method Detail
-
configure
public Configurator.ExecutionStatus configure(LoggerContext loggerContext)
Description copied from interface:ConfiguratorImplementations of this method may expect that theLoggerContextis set withContextAware.setContext(ch.qos.logback.core.Context)before this method is invoked.- Specified by:
configurein interfaceConfigurator
-
-