Uses of Annotation Type
org.apache.logging.log4j.core.config.plugins.PluginElement
Packages that use PluginElement
Package
Description
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 ZeroMQ/JeroMQ 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.
Log4j 2 Filter support.
Log4j 2 Layout support.
Log4j 2 network support.
Log4j 2 SSL support
-
Uses of PluginElement in org.apache.logging.log4j.core.appender
Fields in org.apache.logging.log4j.core.appender with annotations of type PluginElementModifier and TypeFieldDescriptionprivate AppenderRef[]AsyncAppender.Builder.appenderRefsprivate AppenderSetScriptAppenderSelector.Builder.appenderSetprivate BlockingQueueFactory<LogEvent> AsyncAppender.Builder.blockingQueueFactoryprivate Property[]HttpAppender.Builder.headersprivate Layout<? extends Serializable> AbstractAppender.Builder.layoutprivate LoggerFields[]SyslogAppender.Builder.loggerFieldsprivate TriggeringPolicyRollingFileAppender.Builder.policyprivate TriggeringPolicyRollingRandomAccessFileAppender.Builder.policyprivate AbstractScriptScriptAppenderSelector.Builder.scriptprivate SocketOptionsSocketAppender.AbstractBuilder.socketOptionsprivate SslConfigurationHttpAppender.Builder.sslConfigurationprivate SslConfigurationSmtpAppender.Builder.sslConfigurationprivate SslConfigurationSocketAppender.AbstractBuilder.sslConfigurationprivate RolloverStrategyRollingFileAppender.Builder.strategyprivate RolloverStrategyRollingRandomAccessFileAppender.Builder.strategyMethod parameters in org.apache.logging.log4j.core.appender with annotations of type PluginElementModifier and TypeMethodDescriptionstatic FailoverAppenderFailoverAppender.createAppender(String name, String primary, String[] failovers, String retryIntervalSeconds, Configuration config, Filter filter, String ignore) Create a Failover Appender.static FailoverAppenderFailoverAppender.createAppender(String name, String primary, String[] failovers, String retryIntervalSeconds, Configuration config, Filter filter, String ignore) Create a Failover Appender.static SmtpAppenderSmtpAppender.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 SmtpAppenderSmtpAppender.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.Builderinstance.static String[]FailoversPlugin.createFailovers(AppenderRef... refs) Returns the appender references. -
Uses of PluginElement in org.apache.logging.log4j.core.appender.db
Fields in org.apache.logging.log4j.core.appender.db with annotations of type PluginElement -
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 TypeFieldDescriptionprivate ColumnConfig[]JdbcAppender.Builder.columnConfigsprivate ColumnMapping[]JdbcAppender.Builder.columnMappingsprivate ConnectionSourceJdbcAppender.Builder.connectionSourceprotected 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 JeroMqAppenderJeroMqAppender.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 JeroMqAppenderJeroMqAppender.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 JeroMqAppenderJeroMqAppender.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.nosql
Fields in org.apache.logging.log4j.core.appender.nosql with annotations of type PluginElementModifier and TypeFieldDescriptionprivate KeyValuePair[]NoSqlAppender.Builder.additionalFieldsprivate NoSqlProvider<?> NoSqlAppender.Builder.provider -
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 RewriteAppenderRewriteAppender.createAppender(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static RewriteAppenderRewriteAppender.createAppender(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static RewriteAppenderRewriteAppender.createAppender(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter) Creates a RewriteAppender.static LoggerNameLevelRewritePolicyLoggerNameLevelRewritePolicy.createPolicy(String loggerNamePrefix, KeyValuePair[] levelPairs) Creates a policy to rewrite levels for a given logger name.static MapRewritePolicyMapRewritePolicy.createPolicy(String mode, KeyValuePair[] pairs) The factory method to create the MapRewritePolicy.static PropertiesRewritePolicyPropertiesRewritePolicy.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 PluginElementModifier and TypeFieldDescriptionprivate Action[]DefaultRolloverStrategy.Builder.customActionsprivate Action[]DirectWriteRolloverStrategy.Builder.customActionsMethod parameters in org.apache.logging.log4j.core.appender.rolling with annotations of type PluginElementModifier and TypeMethodDescriptionstatic CompositeTriggeringPolicyCompositeTriggeringPolicy.createPolicy(TriggeringPolicy... triggeringPolicy) Creates a CompositeTriggeringPolicy.static DefaultRolloverStrategyDefaultRolloverStrategy.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 DirectWriteRolloverStrategyDirectWriteRolloverStrategy.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
Fields in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginElementModifier and TypeFieldDescriptionprivate PathCondition[]PosixViewAttributeAction.Builder.pathConditionsMethod parameters in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginElementModifier and TypeMethodDescriptionstatic IfLastModifiedIfLastModified.createAgeCondition(Duration age, PathCondition... nestedConditions) Create an IfLastModified condition.static IfAllIfAll.createAndCondition(PathCondition... components) Create a Composite PathCondition whose components all need to accept before this condition accepts.static ScriptConditionScriptCondition.createCondition(AbstractScript script, Configuration configuration) Creates the ScriptCondition.static DeleteActionDeleteAction.createDeleteAction(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static DeleteActionDeleteAction.createDeleteAction(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static DeleteActionDeleteAction.createDeleteAction(String basePath, boolean followLinks, int maxDepth, boolean testMode, PathSorter sorterParameter, PathCondition[] pathConditions, ScriptCondition scriptCondition, Configuration config) Create a DeleteAction.static IfAccumulatedFileCountIfAccumulatedFileCount.createFileCountCondition(int threshold, PathCondition... nestedConditions) Create an IfAccumulatedFileCount condition.static IfAccumulatedFileSizeIfAccumulatedFileSize.createFileSizeCondition(String size, PathCondition... nestedConditions) Create an IfAccumulatedFileSize condition.static IfFileNameIfFileName.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 IfNotIfNot.createNotCondition(PathCondition condition) Create an IfNot PathCondition.static IfAnyIfAny.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 PluginElementModifier and TypeFieldDescriptionprivate AbstractScriptRoutingAppender.Builder.defaultRouteScriptprivate AbstractScriptRoutes.Builder.patternScriptprivate PurgePolicyRoutingAppender.Builder.purgePolicyprivate RewritePolicyRoutingAppender.Builder.rewritePolicyprivate Route[]Routes.Builder.routesprivate RoutesRoutingAppender.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 PluginElementModifier and TypeMethodDescriptionstatic LoggerConfigAsyncLoggerConfig.createLogger(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigAsyncLoggerConfig.createLogger(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigAsyncLoggerConfig.createLogger(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigAsyncLoggerConfig.RootLogger.createLogger(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigAsyncLoggerConfig.RootLogger.createLogger(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigAsyncLoggerConfig.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
Fields in org.apache.logging.log4j.core.config with annotations of type PluginElementModifier and TypeFieldDescriptionprivate FilterLoggerConfig.Builder.filterprivate FilterLoggerConfig.RootLogger.Builder.filterprivate Property[]LoggerConfig.Builder.propertiesprivate Property[]LoggerConfig.RootLogger.Builder.propertiesprivate AppenderRef[]LoggerConfig.Builder.refsprivate AppenderRef[]LoggerConfig.RootLogger.Builder.refsMethod parameters in org.apache.logging.log4j.core.config with annotations of type PluginElementModifier and TypeMethodDescriptionstatic StrLookupPropertiesPlugin.configureSubstitutor(Property[] properties, Configuration config) Creates the Properties component.static AppenderRefAppenderRef.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 CustomLevelsCustomLevels.createCustomLevels(CustomLevelConfig[] customLevels) Create a CustomLevels object to contain all the CustomLevelConfigs.static LoggerConfigLoggerConfig.createLogger(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigLoggerConfig.createLogger(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigLoggerConfig.createLogger(boolean additivity, Level level, String loggerName, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigLoggerConfig.RootLogger.createLogger(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigLoggerConfig.RootLogger.createLogger(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggerConfigLoggerConfig.RootLogger.createLogger(String additivity, Level level, String includeLocation, AppenderRef[] refs, Property[] properties, Configuration config, Filter filter) Deprecated.static LoggersLoggersPlugin.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 PluginElementModifier and TypeFieldDescriptionprivate FilterAbstractFilterable.Builder.filterprivate Property[]AbstractFilterable.Builder.propertyArrayprivate final Property[]AbstractFilterable.propertyArrayMethod parameters in org.apache.logging.log4j.core.filter with annotations of type PluginElementModifier and TypeMethodDescriptionstatic DynamicThresholdFilterDynamicThresholdFilter.createFilter(String key, KeyValuePair[] pairs, Level defaultThreshold, Filter.Result onMatch, Filter.Result onMismatch) Creates a DynamicThresholdFilter.static MapFilterMapFilter.createFilter(KeyValuePair[] pairs, String oper, Filter.Result match, Filter.Result mismatch) static RegexFilterRegexFilter.createFilter(String regex, String[] patternFlags, Boolean useRawMsg, Filter.Result match, Filter.Result mismatch) Creates a Filter that matches a regular expression.static ScriptFilterScriptFilter.createFilter(AbstractScript script, Filter.Result match, Filter.Result mismatch, Configuration configuration) Creates the ScriptFilter.static StructuredDataFilterStructuredDataFilter.createFilter(KeyValuePair[] pairs, String oper, Filter.Result match, Filter.Result mismatch) Creates the StructuredDataFilter.static ThreadContextMapFilterThreadContextMapFilter.createFilter(KeyValuePair[] pairs, String oper, Filter.Result match, Filter.Result mismatch) static CompositeFilterCompositeFilter.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 PluginElementModifier and TypeFieldDescriptionprivate KeyValuePair[]AbstractJacksonLayout.Builder.additionalFieldsprivate KeyValuePair[]GelfLayout.Builder.additionalFieldsprivate KeyValuePair[]JsonLayout.Builder.additionalFieldsprivate AbstractStringLayout.SerializerAbstractStringLayout.Builder.footerSerializerprivate AbstractStringLayout.SerializerAbstractStringLayout.Builder.headerSerializerprivate PatternSelectorGelfLayout.Builder.patternSelectorprivate PatternSelectorPatternLayout.Builder.patternSelectorprivate PatternMatch[]LevelPatternSelector.Builder.propertiesprivate PatternMatch[]MarkerPatternSelector.Builder.propertiesprivate PatternMatch[]ScriptPatternSelector.Builder.propertiesprivate RegexReplacementPatternLayout.Builder.regexReplacementprivate AbstractScriptScriptPatternSelector.Builder.scriptMethod parameters in org.apache.logging.log4j.core.layout with annotations of type PluginElementModifier and TypeMethodDescriptionstatic GelfLayoutGelfLayout.createLayout(String host, KeyValuePair[] additionalFields, GelfLayout.CompressionType compressionType, int compressionThreshold, boolean includeStacktrace) Deprecated.UseGelfLayout.newBuilder()insteadstatic PatternLayoutPatternLayout.createLayout(String pattern, PatternSelector patternSelector, Configuration config, RegexReplacement replace, Charset charset, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, String headerPattern, String footerPattern) Deprecated.UsePatternLayout.newBuilder()instead.static PatternLayoutPatternLayout.createLayout(String pattern, PatternSelector patternSelector, Configuration config, RegexReplacement replace, Charset charset, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, String headerPattern, String footerPattern) Deprecated.UsePatternLayout.newBuilder()instead.static Rfc5424LayoutRfc5424Layout.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) Create the RFC 5424 Layout.static LoggerFieldsLoggerFields.createLoggerFields(KeyValuePair[] keyValuePairs, String sdId, 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 PluginElementModifier and TypeFieldDescriptionprivate SocketPerformancePreferencesSocketOptions.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 PluginElementModifier and TypeMethodDescriptionstatic SslConfigurationSslConfiguration.createSSLConfiguration(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfigurationSslConfiguration.createSSLConfiguration(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfigurationSslConfiguration.createSSLConfiguration(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig, boolean verifyHostName) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.static SslConfigurationSslConfiguration.createSSLConfiguration(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
SmtpAppender.newBuilder()to create and configure aSmtpAppender.Builderinstance.