Uses of Interface
org.apache.logging.log4j.core.config.Configuration
Package
Description
Implementation of Log4j 2.
Log4j 2 Appenders.
The classes in this package and sub packages provide appenders for various types of databases and methods for
accessing databases.
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
Classes and interfaces for Kafka appender support.
The NoSQL Appender supports writing log events to NoSQL databases.
Apache Flume Appender.
Rolling File Appender and support classes.
Support classes for the Rolling File Appender.
Apache Flume Appender.
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Configuration of Log4j 2.
Configuration Builder API for programmatically configuring Log4j.
Configuration Builder Implementation.
Support for composite configurations.
Classes and interfaces supporting configuration of Log4j 2 with JSON.
Utility and manager classes for Log4j 2 plugins.
Visitor classes for extracting values from a Configuration or Node corresponding to a plugin annotation.
Configuration using Properties files.
Classes and interfaces supporting configuration of Log4j 2 with XML.
Classes and interfaces supporting configuration of Log4j 2 with YAML.
Log4j 2 Filter support.
Log4j 2 private implementation classes.
Log4j 2 Layout support.
Log4j 2 Lookups.
Log4j 2 network support.
Provides classes implementing format specifiers in conversion patterns.
Log4j 2 Script support.
Log4j 2 helper classes.
-
Uses of Configuration in org.apache.logging.log4j.core
Modifier and TypeFieldDescriptionfinal Configuration
Logger.PrivateConfig.config
The current Configuration associated with the LoggerConfig.Modifier and TypeMethodDescriptionLoggerContext.getConfiguration()
Returns the current Configuration.LoggerContext.setConfiguration
(Configuration config) Sets the Configuration to be used.Modifier and TypeMethodDescriptionvoid
LoggerContext.reconfigure
(Configuration configuration) LoggerContext.setConfiguration
(Configuration config) Sets the Configuration to be used.void
LoggerContext.start
(Configuration config) Starts with a specific configuration.protected void
Logger.updateConfiguration
(Configuration newConfig) Associates this Logger with a new Configuration.void
LoggerContext.updateLoggers
(Configuration config) Causes all Logger to be updated against the specified Configuration. -
Uses of Configuration in org.apache.logging.log4j.core.appender
Modifier and TypeFieldDescriptionfinal Configuration
ConfigurationFactoryData.configuration
This field is public to follow the style of existing FactoryData classes.Modifier and TypeMethodDescriptionAbstractAppender.Builder.getConfiguration()
AbstractManager.AbstractFactoryData.getConfiguration()
Gets my configuration.AppenderSet.Builder.getConfiguration()
ConfigurationFactoryData.getConfiguration()
HttpManager.getConfiguration()
ScriptAppenderSelector.Builder.getConfiguration()
Modifier and TypeMethodDescriptionstatic AsyncAppender
AsyncAppender.createAppender
(AppenderRef[] appenderRefs, String errorRef, boolean blocking, long shutdownTimeout, int size, String name, boolean includeLocation, Filter filter, Configuration config, boolean ignoreExceptions) Deprecated.static FailoverAppender
FailoverAppender.createAppender
(String name, String primary, String[] failovers, String retryIntervalSeconds, Configuration config, Filter filter, String ignore) Create a Failover Appender.static <B extends FileAppender.Builder<B>>
FileAppenderFileAppender.createAppender
(String fileName, String append, String locking, String name, String immediateFlush, String ignoreExceptions, String bufferedIo, String bufferSizeStr, Layout<? extends Serializable> layout, Filter filter, String advertise, String advertiseUri, Configuration config) Deprecated.static <B extends MemoryMappedFileAppender.Builder<B>>
MemoryMappedFileAppenderMemoryMappedFileAppender.createAppender
(String fileName, String append, String name, String immediateFlush, String regionLengthStr, String ignore, Layout<? extends Serializable> layout, Filter filter, String advertise, String advertiseURI, Configuration config) Deprecated.static <B extends RandomAccessFileAppender.Builder<B>>
RandomAccessFileAppenderRandomAccessFileAppender.createAppender
(String fileName, String append, String name, String immediateFlush, String bufferSizeStr, String ignore, Layout<? extends Serializable> layout, Filter filter, String advertise, String advertiseURI, Configuration configuration) Deprecated.static <B extends RollingFileAppender.Builder<B>>
RollingFileAppenderRollingFileAppender.createAppender
(String fileName, String filePattern, String append, String name, String bufferedIO, String bufferSizeStr, String immediateFlush, TriggeringPolicy policy, RolloverStrategy strategy, Layout<? extends Serializable> layout, Filter filter, String ignore, String advertise, String advertiseUri, Configuration config) Deprecated.static <B extends RollingRandomAccessFileAppender.Builder<B>>
RollingRandomAccessFileAppenderRollingRandomAccessFileAppender.createAppender
(String fileName, String filePattern, String append, String name, String immediateFlush, String bufferSizeStr, TriggeringPolicy policy, RolloverStrategy strategy, Layout<? extends Serializable> layout, Filter filter, String ignoreExceptions, String advertise, String advertiseURI, Configuration configuration) Deprecated.static SmtpAppender
SmtpAppender.createAppender
(Configuration config, String name, String to, String cc, String bcc, String from, String replyTo, String subject, String smtpProtocol, String smtpHost, String smtpPortStr, String smtpUsername, String smtpPassword, String smtpDebug, String bufferSizeStr, Layout<? extends Serializable> layout, Filter filter, String ignore) Deprecated.UseSmtpAppender.newBuilder()
to create and configure aSmtpAppender.Builder
instance.static SocketAppender
SocketAppender.createAppender
(String host, int port, Protocol protocol, SslConfiguration sslConfig, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, String name, boolean immediateFlush, boolean ignoreExceptions, Layout<? extends Serializable> layout, Filter filter, boolean advertise, Configuration configuration) Deprecated.Deprecated in 2.7; useSocketAppender.newBuilder()
static SocketAppender
SocketAppender.createAppender
(String host, String portNum, String protocolIn, SslConfiguration sslConfig, int connectTimeoutMillis, String delayMillis, String immediateFail, String name, String immediateFlush, String ignore, Layout<? extends Serializable> layout, Filter filter, String advertise, Configuration config) Deprecated.Deprecated in 2.5; useSocketAppender.newBuilder()
static <B extends SyslogAppender.Builder<B>>
SyslogAppenderSyslogAppender.createAppender
(String host, int port, String protocolStr, SslConfiguration sslConfiguration, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, String name, boolean immediateFlush, boolean ignoreExceptions, Facility facility, String id, int enterpriseNumber, boolean includeMdc, String mdcId, String mdcPrefix, String eventPrefix, boolean newLine, String escapeNL, String appName, String msgId, String excludes, String includes, String required, String format, Filter filter, Configuration configuration, Charset charset, String exceptionPattern, LoggerFields[] loggerFields, boolean advertise) Deprecated.static FileManager
FileManager.getFileManager
(String fileName, boolean append, boolean locking, boolean bufferedIo, boolean createOnDemand, String advertiseUri, Layout<? extends Serializable> layout, int bufferSize, String filePermissions, String fileOwner, String fileGroup, Configuration configuration) Returns the FileManager.static RandomAccessFileManager
RandomAccessFileManager.getFileManager
(String fileName, boolean append, boolean immediateFlush, int bufferSize, String advertiseURI, Layout<? extends Serializable> layout, Configuration configuration) Returns the RandomAccessFileManager.AbstractAppender.Builder.setConfiguration
(Configuration configuration) AsyncAppender.Builder.setConfiguration
(Configuration configuration) AbstractAppender.Builder.withConfiguration
(Configuration configuration) Deprecated.AppenderSet.Builder.withConfiguration
(Configuration configuration) ScriptAppenderSelector.Builder.withConfiguration
(Configuration configuration) ModifierConstructorDescriptionprotected
AbstractFactoryData
(Configuration configuration) Constructs the base factory data.ConfigurationFactoryData
(Configuration configuration) protected
HttpManager
(Configuration configuration, LoggerContext loggerContext, String name) HttpURLConnectionManager
(Configuration configuration, LoggerContext loggerContext, String name, URL url, String method, int connectTimeoutMillis, int readTimeoutMillis, Property[] headers, SslConfiguration sslConfiguration, boolean verifyHostname) -
Uses of Configuration in org.apache.logging.log4j.core.appender.db
Modifier and TypeMethodDescriptionColumnMapping.Builder.setConfiguration
(Configuration configuration) ModifierConstructorDescriptionprotected
AbstractDatabaseManager
(String name, int bufferSize, Layout<? extends Serializable> layout, Configuration configuration) Constructs the base manager.protected
AbstractFactoryData
(Configuration configuration, int bufferSize, Layout<? extends Serializable> layout) Constructs the base factory data. -
Uses of Configuration in org.apache.logging.log4j.core.appender.db.jdbc
Modifier and TypeMethodDescriptionstatic ColumnConfig
ColumnConfig.createColumnConfig
(Configuration config, String name, String pattern, String literalValue, String eventTimestamp, String unicode, String clob) Deprecated.ColumnConfig.Builder.setConfiguration
(Configuration configuration) The configuration object. -
Uses of Configuration in org.apache.logging.log4j.core.appender.mom.kafka
Modifier and TypeMethodDescriptionstatic KafkaAppender
KafkaAppender.createAppender
(Layout<? extends Serializable> layout, Filter filter, String name, boolean ignoreExceptions, String topic, Property[] properties, Configuration configuration, String key) Deprecated. -
Uses of Configuration in org.apache.logging.log4j.core.appender.nosql
Modifier and TypeMethodDescriptionstatic NoSqlDatabaseManager<?>
NoSqlDatabaseManager.getNoSqlDatabaseManager
(String name, int bufferSize, NoSqlProvider<?> provider, KeyValuePair[] additionalFields, Configuration configuration) Creates a NoSQL manager for use within theNoSqlAppender
, or returns a suitable one if it already exists. -
Uses of Configuration in org.apache.logging.log4j.core.appender.rewrite
Modifier and TypeMethodDescriptionstatic RewriteAppender
RewriteAppender.createAppender
(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static PropertiesRewritePolicy
PropertiesRewritePolicy.createPolicy
(Configuration config, Property[] props) Creates a PropertiesRewritePolicy. -
Uses of Configuration in org.apache.logging.log4j.core.appender.rolling
Modifier and TypeMethodDescriptionDefaultRolloverStrategy.Builder.getConfig()
DirectWriteRolloverStrategy.Builder.getConfig()
Modifier and TypeMethodDescriptionstatic CronTriggeringPolicy
CronTriggeringPolicy.createPolicy
(Configuration configuration, String evaluateOnStartup, String schedule) Creates a ScheduledTriggeringPolicy.static DefaultRolloverStrategy
DefaultRolloverStrategy.createStrategy
(String max, String min, String fileIndex, String compressionLevelStr, Action[] customActions, boolean stopCustomActionsOnError, Configuration config) Deprecated.Since 2.9 Usage of Builder API is preferablestatic DirectWriteRolloverStrategy
DirectWriteRolloverStrategy.createStrategy
(String maxFiles, String compressionLevelStr, Action[] customActions, boolean stopCustomActionsOnError, Configuration config) Deprecated.Since 2.9 Usage of Builder API is preferablestatic RollingFileManager
RollingFileManager.getFileManager
(String fileName, String pattern, boolean append, boolean bufferedIO, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, int bufferSize, boolean immediateFlush, boolean createOnDemand, String filePermissions, String fileOwner, String fileGroup, Configuration configuration) Returns a RollingFileManager.RollingRandomAccessFileManager.getRollingRandomAccessFileManager
(String fileName, String filePattern, boolean isAppend, boolean immediateFlush, int bufferSize, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, String fileGroup, Configuration configuration) DefaultRolloverStrategy.Builder.withConfig
(Configuration config) Defines configuration.DirectWriteRolloverStrategy.Builder.withConfig
(Configuration config) Defines configuration. -
Uses of Configuration in org.apache.logging.log4j.core.appender.rolling.action
Modifier and TypeMethodDescriptionstatic ScriptCondition
ScriptCondition.createCondition
(AbstractScript script, Configuration configuration) Creates the ScriptCondition.static DeleteAction
DeleteAction.createDeleteAction
(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.PosixViewAttributeAction.Builder.withConfiguration
(Configuration configuration) Define required configuration, used to retrieve string substituter.ModifierConstructorDescriptionScriptCondition
(AbstractScript script, Configuration configuration) Constructs a new ScriptCondition. -
Uses of Configuration in org.apache.logging.log4j.core.appender.routing
Modifier and TypeMethodDescriptionRoutes.Builder.getConfiguration()
RoutingAppender.getConfiguration()
Modifier and TypeMethodDescriptionstatic RoutingAppender
RoutingAppender.createAppender
(String name, String ignore, Routes routes, Configuration config, RewritePolicy rewritePolicy, PurgePolicy purgePolicy, Filter filter) Deprecated.Since 2.7; useRoutingAppender.newBuilder()
static PurgePolicy
IdlePurgePolicy.createPurgePolicy
(String timeToLive, String checkInterval, String timeUnit, Configuration configuration) Create the PurgePolicyRoutes.Builder.withConfiguration
(Configuration configuration) -
Uses of Configuration in org.apache.logging.log4j.core.async
Modifier and TypeMethodDescriptionstatic LoggerConfig
AsyncLoggerConfig.createLogger
(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
AsyncLoggerConfig.createLogger
(String additivity, String levelName, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) static LoggerConfig
AsyncLoggerConfig.RootLogger.createLogger
(String additivity, String levelName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) static LoggerConfig
AsyncLoggerConfig.RootLogger.createLogger
(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.void
AsyncLoggerContext.start
(Configuration config) protected void
AsyncLogger.updateConfiguration
(Configuration newConfig) ModifierConstructorDescriptionprotected
AsyncLoggerConfig
(String name, List<AppenderRef> appenders, Filter filter, Level level, boolean additive, Property[] properties, Configuration config, boolean includeLocation) -
Uses of Configuration in org.apache.logging.log4j.core.config
Modifier and TypeClassDescriptionclass
The base Configuration.class
The default configuration writes all output to the Console using the default logging level.class
This configuration defaults to no logging.Modifier and TypeMethodDescriptionLoggerConfig.Builder.getConfig()
LoggerConfig.RootLogger.Builder.getConfig()
ConfigurationFactory.getConfiguration
(LoggerContext loggerContext, String name, URI configLocation) Returns the Configuration.ConfigurationFactory.getConfiguration
(LoggerContext loggerContext, String name, URI configLocation, ClassLoader loader) Returns the Configuration obtained using a given ClassLoader.abstract Configuration
ConfigurationFactory.getConfiguration
(LoggerContext loggerContext, ConfigurationSource source) Reconfigurable.reconfigure()
Modifier and TypeMethodDescriptionvoid
AwaitCompletionReliabilityStrategy.beforeStopConfiguration
(Configuration configuration) void
AwaitUnconditionallyReliabilityStrategy.beforeStopConfiguration
(Configuration configuration) void
DefaultReliabilityStrategy.beforeStopConfiguration
(Configuration configuration) void
LockingReliabilityStrategy.beforeStopConfiguration
(Configuration configuration) void
ReliabilityStrategy.beforeStopConfiguration
(Configuration configuration) Called before the configuration is stopped.static StrLookup
PropertiesPlugin.configureSubstitutor
(Property[] properties, Configuration config) Creates the Properties component.static LoggerConfig
LoggerConfig.createLogger
(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
LoggerConfig.createLogger
(String additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
LoggerConfig.RootLogger.createLogger
(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static Property
Property.createProperty
(String name, String rawValue, Configuration configuration) Creates a Property.protected static LoggerConfig.LevelAndRefs
LoggerConfig.getLevelAndRefs
(Level level, AppenderRef[] refs, String levelAndRefs, Configuration config) protected static boolean
LoggerConfig.includeLocation
(String includeLocationConfigValue, Configuration configuration) static LoggerContext
Configurator.initialize
(ClassLoader loader, Configuration configuration) Initializes the Logging Context.static LoggerContext
Configurator.initialize
(ClassLoader loader, Configuration configuration, Object externalContext) Initializes the Logging Context.static LoggerContext
Configurator.initialize
(Configuration configuration) Initializes the Logging Context.static void
Configurator.reconfigure
(Configuration configuration) Reconfigure using an already constructed Configuration.void
ConfigurationAware.setConfiguration
(Configuration configuration) Injects the current Configuration into this object.LoggerConfig.Builder.withConfig
(Configuration config) LoggerConfig.RootLogger.Builder.withConfig
(Configuration config) ModifierConstructorDescriptionConfigurationFileWatcher
(Configuration configuration, Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners, long lastModifiedMillis) HttpWatcher
(Configuration configuration, Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners, long lastModifiedMillis) protected
LoggerConfig
(String name, List<AppenderRef> appenders, Filter filter, Level level, boolean additive, Property[] properties, Configuration config, boolean includeLocation) -
Uses of Configuration in org.apache.logging.log4j.core.config.builder.api
Modifier and TypeInterfaceDescriptioninterface
ConfigurationBuilder<T extends Configuration>
Interface for building logging configurations.Modifier and TypeMethodDescriptionConfigurationBuilder<? extends Configuration>
ComponentBuilder.getBuilder()
Retrieves the ConfigurationBuilder. -
Uses of Configuration in org.apache.logging.log4j.core.config.builder.impl
Modifier and TypeClassDescriptionclass
This is the general version of the Configuration created by the Builder. -
Uses of Configuration in org.apache.logging.log4j.core.config.composite
-
Uses of Configuration in org.apache.logging.log4j.core.config.json
Modifier and TypeClassDescriptionclass
Creates a Node hierarchy from a JSON file.Modifier and TypeMethodDescriptionJsonConfigurationFactory.getConfiguration
(LoggerContext loggerContext, ConfigurationSource source) JsonConfiguration.reconfigure()
-
Uses of Configuration in org.apache.logging.log4j.core.config.plugins.util
Modifier and TypeMethodDescriptionPluginBuilder.withConfiguration
(Configuration configuration) Specifies the Configuration to use for constructing the plugin instance. -
Uses of Configuration in org.apache.logging.log4j.core.config.plugins.visitors
Modifier and TypeMethodDescriptionPluginAttributeVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginBuilderAttributeVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginConfigurationVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginElementVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginLoggerContextVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginNodeVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginValueVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) PluginVisitor.visit
(Configuration configuration, Node node, LogEvent event, StringBuilder log) Visits a Node to obtain a value for constructing a Plugin object. -
Uses of Configuration in org.apache.logging.log4j.core.config.properties
Modifier and TypeClassDescriptionclass
Configuration created from a properties file. -
Uses of Configuration in org.apache.logging.log4j.core.config.xml
Modifier and TypeClassDescriptionclass
Creates a Node hierarchy from an XML file.Modifier and TypeMethodDescriptionXmlConfigurationFactory.getConfiguration
(LoggerContext loggerContext, ConfigurationSource source) Returns the Configuration.XmlConfiguration.reconfigure()
-
Uses of Configuration in org.apache.logging.log4j.core.config.yaml
Modifier and TypeMethodDescriptionYamlConfigurationFactory.getConfiguration
(LoggerContext loggerContext, ConfigurationSource source) YamlConfiguration.reconfigure()
-
Uses of Configuration in org.apache.logging.log4j.core.filter
Modifier and TypeMethodDescriptionstatic ScriptFilter
ScriptFilter.createFilter
(AbstractScript script, Filter.Result match, Filter.Result mismatch, Configuration configuration) Creates the ScriptFilter.MutableThreadContextMapFilter.Builder.setConfiguration
(Configuration configuration) Sets the Configuration. -
Uses of Configuration in org.apache.logging.log4j.core.impl
Modifier and TypeMethodDescriptionLog4jContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, Configuration configuration) Loads the LoggerContext using the ContextSelector using the provided Configuration -
Uses of Configuration in org.apache.logging.log4j.core.layout
Modifier and TypeFieldDescriptionprotected final Configuration
AbstractLayout.configuration
The current Configuration.Modifier and TypeMethodDescriptionAbstractLayout.Builder.getConfiguration()
AbstractLayout.getConfiguration()
Modifier and TypeMethodDescriptionstatic PatternLayout
PatternLayout.createDefaultLayout
(Configuration configuration) Creates a PatternLayout using the default options and the given configuration.static CsvLogEventLayout
CsvLogEventLayout.createLayout
(Configuration config, String format, Character delimiter, Character escape, Character quote, org.apache.commons.csv.QuoteMode quoteMode, String nullString, String recordSeparator, Charset charset, String header, String footer) static AbstractCsvLayout
CsvParameterLayout.createLayout
(Configuration config, String format, Character delimiter, Character escape, Character quote, org.apache.commons.csv.QuoteMode quoteMode, String nullString, String recordSeparator, Charset charset, String header, String footer) static JsonLayout
JsonLayout.createLayout
(Configuration config, boolean locationInfo, boolean properties, boolean propertiesAsList, boolean complete, boolean compact, boolean eventEol, String headerPattern, String footerPattern, Charset charset, boolean includeStacktrace) Deprecated.UseJsonLayout.newBuilder()
insteadstatic PatternLayout
PatternLayout.createLayout
(String pattern, PatternSelector patternSelector, Configuration config, RegexReplacement replace, Charset charset, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, String headerPattern, String footerPattern) Deprecated.UsePatternLayout.newBuilder()
instead.static Rfc5424Layout
Rfc5424Layout.createLayout
(Facility facility, String id, int enterpriseNumber, boolean includeMDC, String mdcId, String mdcPrefix, String eventPrefix, boolean newLine, String escapeNL, String appName, String msgId, String excludes, String includes, String required, String exceptionPattern, boolean useTlsMessageFormat, LoggerFields[] loggerFields, Configuration config) Deprecated.Useinstead
static org.apache.logging.log4j.core.layout.AbstractJacksonLayout
YamlLayout.createLayout
(Configuration config, boolean locationInfo, boolean properties, String headerPattern, String footerPattern, Charset charset, boolean includeStacktrace) Deprecated.UseYamlLayout.newBuilder()
insteadstatic PatternParser
PatternLayout.createPatternParser
(Configuration config) Creates a PatternParser.static LevelPatternSelector
LevelPatternSelector.createSelector
(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration configuration) Deprecated.UseLevelPatternSelector.newBuilder()
instead.static MarkerPatternSelector
MarkerPatternSelector.createSelector
(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration configuration) Deprecated.UseMarkerPatternSelector.newBuilder()
instead.static ScriptPatternSelector
ScriptPatternSelector.createSelector
(AbstractScript script, PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration configuration) Deprecated.UseScriptPatternSelector.newBuilder()
instead.PatternLayout.createSerializer
(Configuration configuration, RegexReplacement replace, String pattern, String defaultPattern, PatternSelector patternSelector, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi) Deprecated.UsePatternLayout.newSerializerBuilder()
instead.Rfc5424Layout.Rfc5424LayoutBuilder.setConfig
(Configuration config) Deprecated.Since 2.24.0 useAbstractLayout.Builder.setConfiguration(org.apache.logging.log4j.core.config.Configuration)
instead.AbstractLayout.Builder.setConfiguration
(Configuration configuration) LevelPatternSelector.Builder.setConfiguration
(Configuration configuration) MarkerPatternSelector.Builder.setConfiguration
(Configuration configuration) PatternLayout.SerializerBuilder.setConfiguration
(Configuration configuration) ScriptPatternSelector.Builder.setConfiguration
(Configuration config) PatternLayout.Builder.withConfiguration
(Configuration configuration) ModifierConstructorDescriptionprotected
AbstractCsvLayout
(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer) AbstractLayout
(Configuration configuration, byte[] header, byte[] footer) Constructs a layout with an optional header and footer.protected
AbstractStringLayout
(Configuration config, Charset aCharset, AbstractStringLayout.Serializer headerSerializer, AbstractStringLayout.Serializer footerSerializer) Builds a new layout.protected
CsvLogEventLayout
(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer) CsvParameterLayout
(Configuration config, Charset charset, org.apache.commons.csv.CSVFormat csvFormat, String header, String footer) protected
JsonLayout
(Configuration config, boolean locationInfo, boolean properties, boolean encodeThreadContextAsList, boolean complete, boolean compact, boolean eventEol, String endOfLine, String headerPattern, String footerPattern, Charset charset, boolean includeStacktrace) Deprecated.UseJsonLayout.newBuilder()
insteadLevelPatternSelector
(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration config) Deprecated.UseLevelPatternSelector.newBuilder()
instead.MarkerPatternSelector
(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration config) Deprecated.UseMarkerPatternSelector.newBuilder()
instead.MessageLayout
(Configuration configuration, byte[] header, byte[] footer) ScriptPatternSelector
(AbstractScript script, PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean disableAnsi, boolean noConsoleNoAnsi, Configuration config) Deprecated.UseScriptPatternSelector.newBuilder()
instead.protected
YamlLayout
(Configuration config, boolean locationInfo, boolean properties, boolean complete, boolean compact, boolean eventEol, String headerPattern, String footerPattern, Charset charset, boolean includeStacktrace) Deprecated.UseYamlLayout.newBuilder()
instead -
Uses of Configuration in org.apache.logging.log4j.core.lookup
Modifier and TypeFieldDescriptionprotected Configuration
AbstractConfigurationAwareLookup.configuration
Modifier and TypeMethodDescriptionvoid
AbstractConfigurationAwareLookup.setConfiguration
(Configuration configuration) void
Interpolator.setConfiguration
(Configuration configuration) void
StrSubstitutor.setConfiguration
(Configuration configuration) -
Uses of Configuration in org.apache.logging.log4j.core.net
Modifier and TypeMethodDescriptionstatic SmtpManager
SmtpManager.getSmtpManager
(Configuration config, String to, String cc, String bcc, String from, String replyTo, String subject, String protocol, String host, int port, String username, String password, boolean isDebug, String filterName, int numElements, SslConfiguration sslConfiguration) Deprecated. -
Uses of Configuration in org.apache.logging.log4j.core.pattern
Modifier and TypeMethodDescriptionAbstractStyleNameConverter.Black.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.Blue.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.Cyan.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.Green.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.Magenta.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).protected static <T extends AbstractStyleNameConverter>
TAbstractStyleNameConverter.newInstance
(Class<T> asnConverterClass, String name, Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.Red.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.White.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).AbstractStyleNameConverter.Yellow.newInstance
(Configuration config, String[] options) Gets an instance of the class (called via reflection).static EncodingPatternConverter
EncodingPatternConverter.newInstance
(Configuration config, String[] options) Creates an EncodingPatternConverter using a pattern string and an optional escape format.EqualsIgnoreCaseReplacementConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static EqualsReplacementConverter
EqualsReplacementConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.ExtendedThrowablePatternConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static HighlightConverter
HighlightConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static MaxLengthConverter
MaxLengthConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static MessagePatternConverter
MessagePatternConverter.newInstance
(Configuration config, String[] options) Obtains an instance of pattern converter.static RegexReplacementConverter
RegexReplacementConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static RepeatPatternConverter
RepeatPatternConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.RootThrowablePatternConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static StyleConverter
StyleConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.static ThrowablePatternConverter
ThrowablePatternConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.VariablesNotEmptyReplacementConverter.newInstance
(Configuration config, String[] options) Gets an instance of the class.ModifierConstructorDescriptionLiteralPatternConverter
(Configuration config, String literal, boolean convertBackslashes) Create a new instance.PatternParser
(Configuration config, String converterKey, Class<?> expected) Constructor.PatternParser
(Configuration config, String converterKey, Class<?> expectedClass, Class<?> filterClass) Constructor.protected
ThrowablePatternConverter
(String name, String style, String[] options, Configuration config) Constructor. -
Uses of Configuration in org.apache.logging.log4j.core.script
Modifier and TypeMethodDescriptionstatic ScriptRef
ScriptRef.createReference
(String name, Configuration configuration) ModifierConstructorDescriptionScriptManager
(Configuration configuration, WatchManager watchManager, String scriptLanguages) -
Uses of Configuration in org.apache.logging.log4j.core.util
Modifier and TypeMethodDescriptionstatic <T extends Watcher>
TWatcherFactory.instantiate
(String name, Class<T> clazz, Configuration configuration, Reconfigurable reconfigurable, List<ConfigurationListener> listeners, long lastModifiedMillis) WatcherFactory.newWatcher
(Source source, Configuration configuration, Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners, long lastModifiedMillis) ModifierConstructorDescriptionAbstractWatcher
(Configuration configuration, Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners) WrappedFileWatcher
(FileWatcher watcher, Configuration configuration, Reconfigurable reconfigurable, List<ConfigurationListener> configurationListeners, long lastModifiedMillis)
AsyncAppender.Builder
instead