Package org.apache.logging.log4j.core.config
Configuration of Log4j 2.
-
Interface Summary Interface Description Configuration Interface that must be implemented to create a configuration.ConfigurationAware Indicates that a class requests the current Configuration to be injected.ConfigurationListener Interface used to allow components to be notified when the configuration changes.LocationAwareReliabilityStrategy Interface to ensure delivery of log events to the appropriate Appenders while including location information.Reconfigurable Implemented by Configurations that can be reconfigured at runtime.ReliabilityStrategy Interface for objects that know how to ensure delivery of log events to the appropriate appenders, even during and after the configuration has been modified while the system is actively used. -
Class Summary Class Description AbstractConfiguration The base Configuration.AppenderControl Wraps anAppender
with details an appender implementation shouldn't need to know about.AppenderControlArraySet Data structure with similar semantics to CopyOnWriteArraySet, but giving direct access to the underlying array.AppenderRef An Appender reference.AppendersPlugin An Appender container.AwaitCompletionReliabilityStrategy ReliabilityStrategy that counts the number of threads that have started to log an event but have not completed yet, and waits for these threads to finish before allowing the appenders to be stopped.AwaitUnconditionallyReliabilityStrategy Reliability strategy that sleeps unconditionally for some time before allowing a Configuration to be stopped.ConfigurationFactory Factory class for parsedConfiguration
objects from a configuration file.ConfigurationFileWatcher Watcher for configuration files.ConfigurationScheduler ConfigurationSource Represents the source for the logging configuration.Configurator Initializes and configure the Logging system.CronScheduledFuture<V> CustomLevelConfig Descriptor of a custom Level object that is created via configuration.CustomLevels Container for CustomLevelConfig objects.DefaultAdvertiser The default advertiser does not do anything.DefaultConfiguration The default configuration writes all output to the Console using the default logging level.DefaultReliabilityStrategy Reliability strategy that assumes reconfigurations will never take place.HttpWatcher LockingReliabilityStrategy ReliabilityStrategy that uses read/write locks to prevent the LoggerConfig from stopping while it is in use.LoggerConfig Logger object that is created via configuration.LoggerConfig.RootLogger The root Logger.Loggers LoggersPlugin Container of Logger objects.Node A Configuration node.NullConfiguration This configuration defaults to no logging.OrderComparator Comparator for classes annotated withOrder
.PropertiesPlugin Handles properties defined in the configuration.Property Represents a key/value pair in the configuration.ReliabilityStrategyFactory Factory for ReliabilityStrategies.ScriptsPlugin A container of Scripts. -
Enum Summary Enum Description LoggerConfig.LoggerConfigPredicate -
Exception Summary Exception Description ConfigurationException This exception is thrown when an error occurs reading from, parsing, using, or initializing the Log4j 2 configuration. -
Annotation Types Summary Annotation Type Description Order Identifies the relative ordering of aConfigurationFactory
plugin.Scheduled Annotation that identifies a Class as requiring a Scheduled thread.