Uses of Annotation Type
org.apache.logging.log4j.core.config.plugins.PluginFactory
Packages that use PluginFactory
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.
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 SSL support
Provides classes implementing format specifiers in conversion patterns.
Log4j 2 Script support.
The classes in this package contain the Apache CouchDB provider for the NoSQL Appender.
-
Uses of PluginFactory in org.apache.log4j.layout
Methods in org.apache.log4j.layout with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic Log4j1XmlLayoutLog4j1XmlLayout.createLayout(boolean locationInfo, boolean properties) -
Uses of PluginFactory in org.apache.logging.log4j.core.appender
Methods in org.apache.logging.log4j.core.appender with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic CountingNoOpAppenderCountingNoOpAppender.createAppender(String name) Creates a CountingNoOp Appender.static FailoverAppenderFailoverAppender.createAppender(String name, String primary, String[] failovers, String retryIntervalSeconds, Configuration config, Filter filter, String ignore) Create a Failover Appender.static NullAppenderNullAppender.createAppender(String name) static OutputStreamAppenderOutputStreamAppender.createAppender(Layout<? extends Serializable> layout, Filter filter, OutputStream target, String name, boolean follow, boolean ignore) Creates an OutputStream Appender.static SocketAppenderSocketAppender.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.static WriterAppenderWriterAppender.createAppender(StringLayout layout, Filter filter, Writer target, String name, boolean follow, boolean ignore) Creates a WriterAppender.static String[]FailoversPlugin.createFailovers(AppenderRef... refs) Returns the appender references. -
Uses of PluginFactory in org.apache.logging.log4j.core.appender.db.jdbc
Methods in org.apache.logging.log4j.core.appender.db.jdbc with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic DataSourceConnectionSourceDataSourceConnectionSource.createConnectionSource(String jndiName) Factory method for creating a connection source within the plugin manager.FactoryMethodConnectionSource.createConnectionSource(String className, String methodName) Factory method for creating a connection source within the plugin manager. -
Uses of PluginFactory in org.apache.logging.log4j.core.appender.mom.jeromq
Methods in org.apache.logging.log4j.core.appender.mom.jeromq with annotations of type PluginFactoryModifier 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) -
Uses of PluginFactory in org.apache.logging.log4j.core.appender.rewrite
Methods in org.apache.logging.log4j.core.appender.rewrite with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic 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 PluginFactory in org.apache.logging.log4j.core.appender.rolling
Methods in org.apache.logging.log4j.core.appender.rolling with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic CompositeTriggeringPolicyCompositeTriggeringPolicy.createPolicy(TriggeringPolicy... triggeringPolicy) Creates a CompositeTriggeringPolicy.static CronTriggeringPolicyCronTriggeringPolicy.createPolicy(Configuration configuration, String evaluateOnStartup, String schedule) Creates a ScheduledTriggeringPolicy.static NoOpTriggeringPolicyNoOpTriggeringPolicy.createPolicy()static OnStartupTriggeringPolicyOnStartupTriggeringPolicy.createPolicy(long minSize) static SizeBasedTriggeringPolicySizeBasedTriggeringPolicy.createPolicy(String size) Create a SizeBasedTriggeringPolicy.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 PluginFactory in org.apache.logging.log4j.core.appender.rolling.action
Methods in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginFactoryModifier 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 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.static PathSorterPathSortByModificationTime.createSorter(boolean recentFirst) Create a PathSorter that sorts by lastModified time. -
Uses of PluginFactory in org.apache.logging.log4j.core.appender.routing
Methods in org.apache.logging.log4j.core.appender.routing with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic PurgePolicyIdlePurgePolicy.createPurgePolicy(String timeToLive, String checkInterval, String timeUnit, Configuration configuration) Create the PurgePolicystatic RouteRoute.createRoute(String appenderRef, String key, Node node) Create the Route. -
Uses of PluginFactory in org.apache.logging.log4j.core.async
Methods in org.apache.logging.log4j.core.async with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic <E> ArrayBlockingQueueFactory<E> ArrayBlockingQueueFactory.createFactory()static <E> JCToolsBlockingQueueFactory<E> JCToolsBlockingQueueFactory.createFactory(JCToolsBlockingQueueFactory.WaitStrategy waitStrategy) static <E> LinkedTransferQueueFactory<E> LinkedTransferQueueFactory.createFactory() -
Uses of PluginFactory in org.apache.logging.log4j.core.config
Methods in org.apache.logging.log4j.core.config with annotations of type PluginFactoryModifier 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 CustomLevelConfigCustomLevelConfig.createLevel(String levelName, int intLevel) Creates a CustomLevelConfig object.static LoggersLoggersPlugin.createLoggers(LoggerConfig[] loggers) Create a Loggers object to contain all the Loggers.static PropertyProperty.createProperty(String name, String rawValue, String value) Creates a Property.static AbstractScript[]ScriptsPlugin.createScripts(AbstractScript[] scripts) Return the array of scripts -
Uses of PluginFactory in org.apache.logging.log4j.core.filter
Methods in org.apache.logging.log4j.core.filter with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic DynamicThresholdFilterDynamicThresholdFilter.createFilter(String key, KeyValuePair[] pairs, Level defaultThreshold, Filter.Result onMatch, Filter.Result onMismatch) Creates a DynamicThresholdFilter.static LevelRangeFilterLevelRangeFilter.createFilter(Level minLevel, Level maxLevel, Filter.Result match, Filter.Result mismatch) Creates a ThresholdFilter.static MapFilterMapFilter.createFilter(KeyValuePair[] pairs, String oper, Filter.Result match, Filter.Result mismatch) static MarkerFilterMarkerFilter.createFilter(String marker, Filter.Result match, Filter.Result mismatch) Creates the MarkerFilter.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 ThresholdFilterThresholdFilter.createFilter(Level level, Filter.Result match, Filter.Result mismatch) Creates a ThresholdFilter.static TimeFilterTimeFilter.createFilter(String start, String end, String tz, Filter.Result match, Filter.Result mismatch) Creates a TimeFilter.static CompositeFilterCompositeFilter.createFilters(Filter[] filters) Creates a CompositeFilter. -
Uses of PluginFactory in org.apache.logging.log4j.core.layout
Methods in org.apache.logging.log4j.core.layout with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic CsvLogEventLayoutCsvLogEventLayout.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 AbstractCsvLayoutCsvParameterLayout.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 HtmlLayoutHtmlLayout.createLayout(boolean locationInfo, String title, String contentType, Charset charset, String fontSize, String font) Deprecated.static Layout<?> MessageLayout.createLayout()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 SerializedLayoutSerializedLayout.createLayout()Deprecated.static LoggerFieldsLoggerFields.createLoggerFields(KeyValuePair[] keyValuePairs, String sdId, String enterpriseId, boolean discardIfAllFieldsAreEmpty) Create a LoggerFields from KeyValuePairs. -
Uses of PluginFactory in org.apache.logging.log4j.core.net.ssl
Methods in org.apache.logging.log4j.core.net.ssl with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic KeyStoreConfigurationKeyStoreConfiguration.createKeyStoreConfiguration(String location, char[] password, String passwordEnvironmentVariable, String passwordFile, String keyStoreType, String keyManagerFactoryAlgorithm) Creates a KeyStoreConfiguration.static TrustStoreConfigurationTrustStoreConfiguration.createKeyStoreConfiguration(String location, char[] password, String passwordEnvironmentVariable, String passwordFile, String keyStoreType, String trustManagerFactoryAlgorithm) Creates a KeyStoreConfiguration.static SslConfigurationSslConfiguration.createSSLConfiguration(String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig) Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration. -
Uses of PluginFactory in org.apache.logging.log4j.core.pattern
Methods in org.apache.logging.log4j.core.pattern with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic RegexReplacementRegexReplacement.createRegexReplacement(Pattern regex, String replacement) Create a RegexReplacement. -
Uses of PluginFactory in org.apache.logging.log4j.core.script
Methods in org.apache.logging.log4j.core.script with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic ScriptRefScriptRef.createReference(String name, Configuration configuration) static ScriptScript.createScript(String name, String language, String scriptText) static ScriptFileScriptFile.createScript(String name, String language, String filePathOrUri, Boolean isWatched, Charset charset) -
Uses of PluginFactory in org.apache.logging.log4j.couchdb
Methods in org.apache.logging.log4j.couchdb with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic CouchDbProviderCouchDbProvider.createNoSqlProvider(String databaseName, String protocol, String server, String port, String username, String password, String factoryClassName, String factoryMethodName) Factory method for creating an Apache CouchDB provider within the plugin manager. -
Uses of PluginFactory in org.apache.logging.log4j.layout.template.json.resolver
Methods in org.apache.logging.log4j.layout.template.json.resolver with annotations of type PluginFactoryModifier and TypeMethodDescriptionstatic CaseConverterResolverFactoryCaseConverterResolverFactory.getInstance()static CounterResolverFactoryCounterResolverFactory.getInstance()static EndOfBatchResolverFactoryEndOfBatchResolverFactory.getInstance()EventAdditionalFieldInterceptor.getInstance()EventRootObjectKeyInterceptor.getInstance()static ExceptionResolverFactoryExceptionResolverFactory.getInstance()ExceptionRootCauseResolverFactory.getInstance()static LevelResolverFactoryLevelResolverFactory.getInstance()static LoggerResolverFactoryLoggerResolverFactory.getInstance()static MainMapResolverFactoryMainMapResolverFactory.getInstance()static MapResolverFactoryMapResolverFactory.getInstance()static MarkerResolverFactoryMarkerResolverFactory.getInstance()MessageParameterResolverFactory.getInstance()static MessageResolverFactoryMessageResolverFactory.getInstance()static PatternResolverFactoryPatternResolverFactory.getInstance()static SourceResolverFactorySourceResolverFactory.getInstance()ThreadContextDataResolverFactory.getInstance()ThreadContextStackResolverFactory.getInstance()static ThreadResolverFactoryThreadResolverFactory.getInstance()static TimestampResolverFactoryTimestampResolverFactory.getInstance()
SocketAppender.newBuilder()