Class LoggerConfig.RootLogger
java.lang.Object
org.apache.logging.log4j.core.AbstractLifeCycle
org.apache.logging.log4j.core.filter.AbstractFilterable
org.apache.logging.log4j.core.config.LoggerConfig
org.apache.logging.log4j.core.config.LoggerConfig.RootLogger
- All Implemented Interfaces:
Filterable, LocationAware, LifeCycle, LifeCycle2
- Enclosing class:
LoggerConfig
@Plugin(name="root",
category="Core",
printObject=true)
public static class LoggerConfig.RootLogger
extends LoggerConfig
The root Logger.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds LoggerConfig instances.Nested classes/interfaces inherited from class LoggerConfig
LoggerConfig.LevelAndRefs, LoggerConfig.LoggerConfigPredicate, LoggerConfig.RootLoggerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.State -
Field Summary
Fields inherited from class LoggerConfig
ROOTFields inherited from class AbstractLifeCycle
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggerConfigcreateLogger(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static <B extends LoggerConfig.RootLogger.Builder<B>>
BMethods inherited from class LoggerConfig
addAppender, callAppenders, clearAppenders, createLogger, createLogger, getAppenderRefs, getAppenders, getExplicitLevel, getFilter, getLevel, getLevelAndRefs, getLogEventFactory, getName, getParent, getProperties, getPropertyList, getReliabilityStrategy, hasAppenders, includeLocation, includeLocation, isAdditive, isIncludeLocation, isPropertiesRequireLookup, log, log, log, log, newBuilder, removeAppender, requiresLocation, setAdditive, setLevel, setLogEventFactory, setParent, toStringMethods inherited from class AbstractFilterable
addFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stopMethods inherited from class AbstractLifeCycle
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
-
Constructor Details
-
RootLogger
public RootLogger()
-
-
Method Details
-
newRootBuilder
@PluginBuilderFactory public static <B extends LoggerConfig.RootLogger.Builder<B>> B newRootBuilder() -
createLogger
@Deprecated public static LoggerConfig createLogger(@PluginAttribute("additivity") String additivity, @PluginAttribute("level") Level level, @PluginAttribute("includeLocation") String includeLocation, @PluginElement("AppenderRef") AppenderRef[] refs, @PluginElement("Properties") Property[] properties, @PluginConfiguration Configuration config, @PluginElement("Filter") Filter filter) Deprecated.
-