Uses of Class
org.apache.logging.log4j.core.config.plugins.PluginElement
-
Packages that use PluginElement Package Description org.apache.logging.log4j.core.appender Log4j 2 Appenders.org.apache.logging.log4j.core.appender.rewrite Apache Flume Appender.org.apache.logging.log4j.core.appender.rolling Rolling File Appender and support classes.org.apache.logging.log4j.core.appender.rolling.action Support classes for the Rolling File Appender.org.apache.logging.log4j.core.appender.routing Apache Flume Appender.org.apache.logging.log4j.core.async Provides Asynchronous Logger classes and interfaces for low-latency logging.org.apache.logging.log4j.core.config Configuration of Log4j 2.org.apache.logging.log4j.core.filter Log4j 2 Filter support.org.apache.logging.log4j.core.layout Log4j 2 Layout support.org.apache.logging.log4j.core.net Log4j 2 network support.org.apache.logging.log4j.core.net.ssl Log4j 2 SSL supportorg.apache.logging.log4j.layout.template.json -
-
Uses of PluginElement in org.apache.logging.log4j.core.appender
Fields in org.apache.logging.log4j.core.appender with annotations of type PluginElement Modifier and Type Field Description private AppenderRef[]
AsyncAppender.Builder. appenderRefs
private AppenderSet
ScriptAppenderSelector.Builder. appenderSet
private BlockingQueueFactory<LogEvent>
AsyncAppender.Builder. blockingQueueFactory
private Property[]
HttpAppender.Builder. headers
private Layout<? extends java.io.Serializable>
AbstractAppender.Builder. layout
private LoggerFields[]
SyslogAppender.Builder. loggerFields
private TriggeringPolicy
RollingFileAppender.Builder. policy
private TriggeringPolicy
RollingRandomAccessFileAppender.Builder. policy
private AbstractScript
ScriptAppenderSelector.Builder. script
private SocketOptions
SocketAppender.AbstractBuilder. socketOptions
private SslConfiguration
HttpAppender.Builder. sslConfiguration
private SslConfiguration
SmtpAppender.Builder. sslConfiguration
private SslConfiguration
SocketAppender.AbstractBuilder. sslConfiguration
private RolloverStrategy
RollingFileAppender.Builder. strategy
private RolloverStrategy
RollingRandomAccessFileAppender.Builder. strategy
Method parameters in org.apache.logging.log4j.core.appender with annotations of type PluginElement Modifier and Type Method Description static FailoverAppender
FailoverAppender. createAppender(java.lang.String name, java.lang.String primary, java.lang.String[] failovers, java.lang.String retryIntervalSeconds, Configuration config, Filter filter, java.lang.String ignore)
Create a Failover Appender.static FailoverAppender
FailoverAppender. createAppender(java.lang.String name, java.lang.String primary, java.lang.String[] failovers, java.lang.String retryIntervalSeconds, Configuration config, Filter filter, java.lang.String ignore)
Create a Failover Appender.static SmtpAppender
SmtpAppender. createAppender(Configuration config, java.lang.String name, java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String from, java.lang.String replyTo, java.lang.String subject, java.lang.String smtpProtocol, java.lang.String smtpHost, java.lang.String smtpPortStr, java.lang.String smtpUsername, java.lang.String smtpPassword, java.lang.String smtpDebug, java.lang.String bufferSizeStr, Layout<? extends java.io.Serializable> layout, Filter filter, java.lang.String ignore)
Deprecated.UseSmtpAppender.newBuilder()
to create and configure aSmtpAppender.Builder
instance.static SmtpAppender
SmtpAppender. createAppender(Configuration config, java.lang.String name, java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String from, java.lang.String replyTo, java.lang.String subject, java.lang.String smtpProtocol, java.lang.String smtpHost, java.lang.String smtpPortStr, java.lang.String smtpUsername, java.lang.String smtpPassword, java.lang.String smtpDebug, java.lang.String bufferSizeStr, Layout<? extends java.io.Serializable> layout, Filter filter, java.lang.String ignore)
Deprecated.UseSmtpAppender.newBuilder()
to create and configure aSmtpAppender.Builder
instance.static java.lang.String[]
FailoversPlugin. createFailovers(AppenderRef... refs)
Returns the appender references. -
Uses of PluginElement in org.apache.logging.log4j.core.appender.rewrite
Method parameters in org.apache.logging.log4j.core.appender.rewrite with annotations of type PluginElement Modifier and Type Method Description static RewriteAppender
RewriteAppender. createAppender(java.lang.String name, java.lang.String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter)
Creates a RewriteAppender.static RewriteAppender
RewriteAppender. createAppender(java.lang.String name, java.lang.String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter)
Creates a RewriteAppender.static RewriteAppender
RewriteAppender. createAppender(java.lang.String name, java.lang.String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter)
Creates a RewriteAppender.static LoggerNameLevelRewritePolicy
LoggerNameLevelRewritePolicy. createPolicy(java.lang.String loggerNamePrefix, KeyValuePair[] levelPairs)
Creates a policy to rewrite levels for a given logger name.static MapRewritePolicy
MapRewritePolicy. createPolicy(java.lang.String mode, KeyValuePair[] pairs)
The factory method to create the MapRewritePolicy.static PropertiesRewritePolicy
PropertiesRewritePolicy. createPolicy(Configuration config, Property[] props)
Creates a PropertiesRewritePolicy. -
Uses of PluginElement in org.apache.logging.log4j.core.appender.rolling
Fields in org.apache.logging.log4j.core.appender.rolling with annotations of type PluginElement Modifier and Type Field Description private Action[]
DefaultRolloverStrategy.Builder. customActions
private Action[]
DirectWriteRolloverStrategy.Builder. customActions
Method parameters in org.apache.logging.log4j.core.appender.rolling with annotations of type PluginElement Modifier and Type Method Description static CompositeTriggeringPolicy
CompositeTriggeringPolicy. createPolicy(TriggeringPolicy... triggeringPolicy)
Creates a CompositeTriggeringPolicy.static DefaultRolloverStrategy
DefaultRolloverStrategy. createStrategy(java.lang.String max, java.lang.String min, java.lang.String fileIndex, java.lang.String compressionLevelStr, Action[] customActions, boolean stopCustomActionsOnError, Configuration config)
Deprecated.Since 2.9 Usage of Builder API is preferablestatic DirectWriteRolloverStrategy
DirectWriteRolloverStrategy. createStrategy(java.lang.String maxFiles, java.lang.String compressionLevelStr, Action[] customActions, boolean stopCustomActionsOnError, Configuration config)
Deprecated.Since 2.9 Usage of Builder API is preferable -
Uses of PluginElement in org.apache.logging.log4j.core.appender.rolling.action
Fields in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginElement Modifier and Type Field Description private PathCondition[]
PosixViewAttributeAction.Builder. pathConditions
Method parameters in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginElement Modifier and Type Method Description static IfLastModified
IfLastModified. createAgeCondition(Duration age, PathCondition... nestedConditions)
Create an IfLastModified condition.static IfAll
IfAll. createAndCondition(PathCondition... components)
Create a Composite PathCondition whose components all need to accept before this condition accepts.static ScriptCondition
ScriptCondition. createCondition(AbstractScript script, Configuration configuration)
Creates the ScriptCondition.static DeleteAction
DeleteAction. createDeleteAction(java.lang.String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config)
Create a DeleteAction.static DeleteAction
DeleteAction. createDeleteAction(java.lang.String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config)
Create a DeleteAction.static DeleteAction
DeleteAction. createDeleteAction(java.lang.String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config)
Create a DeleteAction.static IfAccumulatedFileCount
IfAccumulatedFileCount. createFileCountCondition(int threshold, PathCondition... nestedConditions)
Create an IfAccumulatedFileCount condition.static IfAccumulatedFileSize
IfAccumulatedFileSize. createFileSizeCondition(java.lang.String size, PathCondition... nestedConditions)
Create an IfAccumulatedFileSize condition.static IfFileName
IfFileName. createNameCondition(java.lang.String glob, java.lang.String regex, PathCondition... nestedConditions)
Creates a IfFileName condition that returns true if either the specified glob pattern or the regular expression matches the relative path.static IfNot
IfNot. createNotCondition(PathCondition condition)
Create an IfNot PathCondition.static IfAny
IfAny. createOrCondition(PathCondition... components)
Create a Composite PathCondition: accepts if any of the nested conditions accepts. -
Uses of PluginElement in org.apache.logging.log4j.core.appender.routing
Fields in org.apache.logging.log4j.core.appender.routing with annotations of type PluginElement Modifier and Type Field Description private AbstractScript
RoutingAppender.Builder. defaultRouteScript
private AbstractScript
Routes.Builder. patternScript
private PurgePolicy
RoutingAppender.Builder. purgePolicy
private RewritePolicy
RoutingAppender.Builder. rewritePolicy
private Route[]
Routes.Builder. routes
private Routes
RoutingAppender.Builder. routes
-
Uses of PluginElement in org.apache.logging.log4j.core.async
Method parameters in org.apache.logging.log4j.core.async with annotations of type PluginElement Modifier and Type Method Description static LoggerConfig
AsyncLoggerConfig. createLogger(boolean additivity, Level level, java.lang.String loggerName, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
AsyncLoggerConfig. createLogger(boolean additivity, Level level, java.lang.String loggerName, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
AsyncLoggerConfig. createLogger(boolean additivity, Level level, java.lang.String loggerName, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
AsyncLoggerConfig.RootLogger. createLogger(java.lang.String additivity, Level level, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
AsyncLoggerConfig.RootLogger. createLogger(java.lang.String additivity, Level level, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
AsyncLoggerConfig.RootLogger. createLogger(java.lang.String additivity, Level level, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated. -
Uses of PluginElement in org.apache.logging.log4j.core.config
Fields in org.apache.logging.log4j.core.config with annotations of type PluginElement Modifier and Type Field Description private Filter
LoggerConfig.Builder. filter
private Filter
LoggerConfig.RootLogger.Builder. filter
private Property[]
LoggerConfig.Builder. properties
private Property[]
LoggerConfig.RootLogger.Builder. properties
private AppenderRef[]
LoggerConfig.Builder. refs
private AppenderRef[]
LoggerConfig.RootLogger.Builder. refs
Method parameters in org.apache.logging.log4j.core.config with annotations of type PluginElement Modifier and Type Method Description static StrLookup
PropertiesPlugin. configureSubstitutor(Property[] properties, Configuration config)
Creates the Properties component.static AppenderRef
AppenderRef. createAppenderRef(java.lang.String ref, Level level, Filter filter)
Create an Appender reference.static java.util.concurrent.ConcurrentMap<java.lang.String,Appender>
AppendersPlugin. createAppenders(Appender[] appenders)
Creates a Map of the Appenders.static CustomLevels
CustomLevels. createCustomLevels(CustomLevelConfig[] customLevels)
Create a CustomLevels object to contain all the CustomLevelConfigs.static LoggerConfig
LoggerConfig. createLogger(boolean additivity, Level level, java.lang.String loggerName, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
LoggerConfig. createLogger(boolean additivity, Level level, java.lang.String loggerName, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
LoggerConfig. createLogger(boolean additivity, Level level, java.lang.String loggerName, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
LoggerConfig.RootLogger. createLogger(java.lang.String additivity, Level level, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
LoggerConfig.RootLogger. createLogger(java.lang.String additivity, Level level, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static LoggerConfig
LoggerConfig.RootLogger. createLogger(java.lang.String additivity, Level level, java.lang.String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter)
Deprecated.static Loggers
LoggersPlugin. createLoggers(LoggerConfig[] loggers)
Create a Loggers object to contain all the Loggers.static AbstractScript[]
ScriptsPlugin. createScripts(AbstractScript[] scripts)
Return the array of scripts -
Uses of PluginElement in org.apache.logging.log4j.core.filter
Fields in org.apache.logging.log4j.core.filter with annotations of type PluginElement Modifier and Type Field Description private Filter
AbstractFilterable.Builder. filter
private Property[]
AbstractFilterable.Builder. propertyArray
private Property[]
AbstractFilterable. propertyArray
Method parameters in org.apache.logging.log4j.core.filter with annotations of type PluginElement Modifier and Type Method Description static DynamicThresholdFilter
DynamicThresholdFilter. createFilter(java.lang.String key, KeyValuePair[] pairs, Level defaultThreshold, Filter.Result onMatch, Filter.Result onMismatch)
Creates a DynamicThresholdFilter.static MapFilter
MapFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)
static RegexFilter
RegexFilter. createFilter(java.lang.String regex, java.lang.String[] patternFlags, java.lang.Boolean useRawMsg, Filter.Result match, Filter.Result mismatch)
Creates a Filter that matches a regular expression.static ScriptFilter
ScriptFilter. createFilter(AbstractScript script, Filter.Result match, Filter.Result mismatch, Configuration configuration)
Creates the ScriptFilter.static StructuredDataFilter
StructuredDataFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)
Creates the StructuredDataFilter.static ThreadContextMapFilter
ThreadContextMapFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)
static CompositeFilter
CompositeFilter. createFilters(Filter[] filters)
Creates a CompositeFilter. -
Uses of PluginElement in org.apache.logging.log4j.core.layout
Fields in org.apache.logging.log4j.core.layout with annotations of type PluginElement Modifier and Type Field Description private AbstractStringLayout.Serializer
AbstractStringLayout.Builder. footerSerializer
private AbstractStringLayout.Serializer
AbstractStringLayout.Builder. headerSerializer
private PatternSelector
PatternLayout.Builder. patternSelector
private PatternMatch[]
LevelPatternSelector.Builder. properties
private PatternMatch[]
MarkerPatternSelector.Builder. properties
private PatternMatch[]
ScriptPatternSelector.Builder. properties
private RegexReplacement
PatternLayout.Builder. regexReplacement
private AbstractScript
ScriptPatternSelector.Builder. script
Method parameters in org.apache.logging.log4j.core.layout with annotations of type PluginElement Modifier and Type Method Description static PatternLayout
PatternLayout. createLayout(java.lang.String pattern, PatternSelector patternSelector, Configuration config, RegexReplacement replace, java.nio.charset.Charset charset, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, java.lang.String headerPattern, java.lang.String footerPattern)
Deprecated.UsePatternLayout.newBuilder()
instead.static PatternLayout
PatternLayout. createLayout(java.lang.String pattern, PatternSelector patternSelector, Configuration config, RegexReplacement replace, java.nio.charset.Charset charset, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, java.lang.String headerPattern, java.lang.String footerPattern)
Deprecated.UsePatternLayout.newBuilder()
instead.static Rfc5424Layout
Rfc5424Layout. createLayout(Facility facility, java.lang.String id, int enterpriseNumber, boolean includeMDC, java.lang.String mdcId, java.lang.String mdcPrefix, java.lang.String eventPrefix, boolean newLine, java.lang.String escapeNL, java.lang.String appName, java.lang.String msgId, java.lang.String excludes, java.lang.String includes, java.lang.String required, java.lang.String exceptionPattern, boolean useTlsMessageFormat, LoggerFields[] loggerFields, Configuration config)
Create the RFC 5424 Layout.static LoggerFields
LoggerFields. createLoggerFields(KeyValuePair[] keyValuePairs, java.lang.String sdId, java.lang.String enterpriseId, boolean discardIfAllFieldsAreEmpty)
Create a LoggerFields from KeyValuePairs. -
Uses of PluginElement in org.apache.logging.log4j.core.net
Fields in org.apache.logging.log4j.core.net with annotations of type PluginElement Modifier and Type Field Description private SocketPerformancePreferences
SocketOptions. performancePreferences
-
Uses of PluginElement in org.apache.logging.log4j.core.net.ssl
Method parameters in org.apache.logging.log4j.core.net.ssl with annotations of type PluginElement Modifier and Type Method Description static SslConfiguration
SslConfiguration. createSSLConfiguration(java.lang.String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfiguration
SslConfiguration. createSSLConfiguration(java.lang.String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfiguration
SslConfiguration. createSSLConfiguration(java.lang.String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig, boolean verifyHostName)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfiguration
SslConfiguration. createSSLConfiguration(java.lang.String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig, boolean verifyHostName)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration. -
Uses of PluginElement in org.apache.logging.log4j.layout.template.json
Fields in org.apache.logging.log4j.layout.template.json with annotations of type PluginElement Modifier and Type Field Description private JsonTemplateLayout.EventTemplateAdditionalField[]
JsonTemplateLayout.Builder. eventTemplateAdditionalFields
-