Uses of Annotation Type
org.apache.logging.log4j.core.config.plugins.PluginElement
Packages that use PluginElement
Package
Description
Log4j 2 Appenders.
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
Classes and interfaces for ZeroMQ/JeroMQ support.
Apache Flume Appender.
Rolling File Appender and support classes.
Support classes for the Rolling File Appender.
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Configuration of Log4j 2.
Log4j 2 Filter support.
Log4j 2 Layout support.
Log4j 2 SSL support
-
Uses of PluginElement in org.apache.logging.log4j.core.appender
Method parameters in org.apache.logging.log4j.core.appender with annotations of type PluginElementModifier and TypeMethodDescriptionstatic FailoverAppender
FailoverAppender.createAppender
(String name, String primary, String[] failovers, String retryIntervalSeconds, Configuration config, Filter filter, String ignore) Create a Failover Appender.static FailoverAppender
FailoverAppender.createAppender
(String name, String primary, String[] failovers, String retryIntervalSeconds, Configuration config, Filter filter, String ignore) Create a Failover Appender.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.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 String[]
FailoversPlugin.createFailovers
(AppenderRef... refs) Returns the appender references. -
Uses of PluginElement in org.apache.logging.log4j.core.appender.db.jdbc
Fields in org.apache.logging.log4j.core.appender.db.jdbc with annotations of type PluginElementModifier and TypeFieldDescriptionprotected Property[]
AbstractDriverManagerConnectionSource.Builder.properties
-
Uses of PluginElement in org.apache.logging.log4j.core.appender.mom.jeromq
Method parameters in org.apache.logging.log4j.core.appender.mom.jeromq with annotations of type PluginElementModifier and TypeMethodDescriptionstatic JeroMqAppender
JeroMqAppender.createAppender
(String name, Layout<?> layout, Filter filter, Property[] properties, boolean ignoreExceptions, long affinity, long backlog, boolean delayAttachOnConnect, byte[] identity, boolean ipv4Only, long linger, long maxMsgSize, long rcvHwm, long receiveBufferSize, int receiveTimeOut, long reconnectIVL, long reconnectIVLMax, long sendBufferSize, int sendTimeOut, long sndHwm, int tcpKeepAlive, long tcpKeepAliveCount, long tcpKeepAliveIdle, long tcpKeepAliveInterval, boolean xpubVerbose) static JeroMqAppender
JeroMqAppender.createAppender
(String name, Layout<?> layout, Filter filter, Property[] properties, boolean ignoreExceptions, long affinity, long backlog, boolean delayAttachOnConnect, byte[] identity, boolean ipv4Only, long linger, long maxMsgSize, long rcvHwm, long receiveBufferSize, int receiveTimeOut, long reconnectIVL, long reconnectIVLMax, long sendBufferSize, int sendTimeOut, long sndHwm, int tcpKeepAlive, long tcpKeepAliveCount, long tcpKeepAliveIdle, long tcpKeepAliveInterval, boolean xpubVerbose) static JeroMqAppender
JeroMqAppender.createAppender
(String name, Layout<?> layout, Filter filter, Property[] properties, boolean ignoreExceptions, long affinity, long backlog, boolean delayAttachOnConnect, byte[] identity, boolean ipv4Only, long linger, long maxMsgSize, long rcvHwm, long receiveBufferSize, int receiveTimeOut, long reconnectIVL, long reconnectIVLMax, long sendBufferSize, int sendTimeOut, long sndHwm, int tcpKeepAlive, long tcpKeepAliveCount, long tcpKeepAliveIdle, long tcpKeepAliveInterval, boolean xpubVerbose) -
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 PluginElementModifier and TypeMethodDescriptionstatic RewriteAppender
RewriteAppender.createAppender
(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static RewriteAppender
RewriteAppender.createAppender
(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static RewriteAppender
RewriteAppender.createAppender
(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static LoggerNameLevelRewritePolicy
LoggerNameLevelRewritePolicy.createPolicy
(String loggerNamePrefix, KeyValuePair[] levelPairs) Creates a policy to rewrite levels for a given logger name.static MapRewritePolicy
MapRewritePolicy.createPolicy
(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
Method parameters in org.apache.logging.log4j.core.appender.rolling with annotations of type PluginElementModifier and TypeMethodDescriptionstatic CompositeTriggeringPolicy
CompositeTriggeringPolicy.createPolicy
(TriggeringPolicy... triggeringPolicy) Creates a CompositeTriggeringPolicy.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 preferable -
Uses of PluginElement in org.apache.logging.log4j.core.appender.rolling.action
Method parameters in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginElementModifier and TypeMethodDescriptionstatic 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
(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static DeleteAction
DeleteAction.createDeleteAction
(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static DeleteAction
DeleteAction.createDeleteAction
(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
(String size, PathCondition... nestedConditions) Create an IfAccumulatedFileSize condition.static IfFileName
IfFileName.createNameCondition
(String glob, 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.async
Method parameters in org.apache.logging.log4j.core.async with annotations of type PluginElementModifier 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
(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
AsyncLoggerConfig.createLogger
(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
AsyncLoggerConfig.RootLogger.createLogger
(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
AsyncLoggerConfig.RootLogger.createLogger
(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfig
AsyncLoggerConfig.RootLogger.createLogger
(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated. -
Uses of PluginElement in org.apache.logging.log4j.core.config
Method parameters in org.apache.logging.log4j.core.config with annotations of type PluginElementModifier and TypeMethodDescriptionstatic StrLookup
PropertiesPlugin.configureSubstitutor
(Property[] properties, Configuration config) Creates the Properties component.static AppenderRef
AppenderRef.createAppenderRef
(String ref, Level level, Filter filter) Create an Appender reference.static ConcurrentMap<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, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.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
(boolean 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 LoggerConfig
LoggerConfig.RootLogger.createLogger
(String additivity, Level level, 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 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
Method parameters in org.apache.logging.log4j.core.filter with annotations of type PluginElementModifier and TypeMethodDescriptionstatic DynamicThresholdFilter
DynamicThresholdFilter.createFilter
(String key, KeyValuePair[] pairs, Level defaultThreshold, Filter.Result onMatch, Filter.Result onMismatch) Creates a DynamicThresholdFilter.static MapFilter
MapFilter.createFilter
(KeyValuePair[] pairs, String oper, Filter.Result match, Filter.Result mismatch) static RegexFilter
RegexFilter.createFilter
(String regex, String[] patternFlags, 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, String oper, Filter.Result match, Filter.Result mismatch) Creates the StructuredDataFilter.static ThreadContextMapFilter
ThreadContextMapFilter.createFilter
(KeyValuePair[] pairs, 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
Method parameters in org.apache.logging.log4j.core.layout with annotations of type PluginElementModifier and TypeMethodDescriptionstatic GelfLayout
GelfLayout.createLayout
(String host, KeyValuePair[] additionalFields, GelfLayout.CompressionType compressionType, int compressionThreshold, boolean includeStacktrace) Deprecated.UseGelfLayout.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 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 LoggerFields
LoggerFields.createLoggerFields
(KeyValuePair[] keyValuePairs, String sdId, String enterpriseId, boolean discardIfAllFieldsAreEmpty) Create a LoggerFields from KeyValuePairs. -
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 PluginElementModifier and TypeMethodDescriptionstatic SslConfiguration
SslConfiguration.createSSLConfiguration
(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfiguration
SslConfiguration.createSSLConfiguration
(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfiguration
SslConfiguration.createSSLConfiguration
(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig, boolean verifyHostName) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfiguration
SslConfiguration.createSSLConfiguration
(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig, boolean verifyHostName) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.
SmtpAppender.newBuilder()
to create and configure aSmtpAppender.Builder
instance.