Uses of Class
org.apache.logging.log4j.core.config.plugins.PluginFactory
-
Packages that use PluginFactory Package Description org.apache.log4j.layout org.apache.logging.log4j.core.appender Log4j 2 Appenders.org.apache.logging.log4j.core.appender.db.jdbc The JDBC Appender supports writing log events to a relational database using standard JDBC connections.org.apache.logging.log4j.core.appender.mom.jeromq Classes and interfaces for ZeroMQ/JeroMQ support.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.ssl Log4j 2 SSL supportorg.apache.logging.log4j.core.pattern Provides classes implementing format specifiers in conversion patterns.org.apache.logging.log4j.core.script Log4j 2 Script support.org.apache.logging.log4j.couchdb The classes in this package contain the Apache CouchDB provider for the NoSQL Appender.org.apache.logging.log4j.layout.template.json.resolver -
-
Uses of PluginFactory in org.apache.log4j.layout
Methods in org.apache.log4j.layout with annotations of type PluginFactory Modifier and Type Method Description static 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 PluginFactory Modifier and Type Method Description static CountingNoOpAppenderCountingNoOpAppender. createAppender(java.lang.String name)Creates a CountingNoOp Appender.static FailoverAppenderFailoverAppender. 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 NullAppenderNullAppender. createAppender(java.lang.String name)static OutputStreamAppenderOutputStreamAppender. createAppender(Layout<? extends java.io.Serializable> layout, Filter filter, java.io.OutputStream target, java.lang.String name, boolean follow, boolean ignore)Creates an OutputStream Appender.static SocketAppenderSocketAppender. createAppender(java.lang.String host, int port, Protocol protocol, SslConfiguration sslConfig, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, java.lang.String name, boolean immediateFlush, boolean ignoreExceptions, Layout<? extends java.io.Serializable> layout, Filter filter, boolean advertise, Configuration configuration)Deprecated.Deprecated in 2.7; useSocketAppender.newBuilder()static WriterAppenderWriterAppender. createAppender(StringLayout layout, Filter filter, java.io.Writer target, java.lang.String name, boolean follow, boolean ignore)Creates a WriterAppender.static java.lang.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 PluginFactory Modifier and Type Method Description static DataSourceConnectionSourceDataSourceConnectionSource. createConnectionSource(java.lang.String jndiName)Factory method for creating a connection source within the plugin manager.static FactoryMethodConnectionSourceFactoryMethodConnectionSource. createConnectionSource(java.lang.String className, java.lang.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 PluginFactory Modifier and Type Method Description static JeroMqAppenderJeroMqAppender. createAppender(java.lang.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 PluginFactory Modifier and Type Method Description static RewriteAppenderRewriteAppender. createAppender(java.lang.String name, java.lang.String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter)Creates a RewriteAppender.static LoggerNameLevelRewritePolicyLoggerNameLevelRewritePolicy. createPolicy(java.lang.String loggerNamePrefix, KeyValuePair[] levelPairs)Creates a policy to rewrite levels for a given logger name.static MapRewritePolicyMapRewritePolicy. createPolicy(java.lang.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 PluginFactory Modifier and Type Method Description static CompositeTriggeringPolicyCompositeTriggeringPolicy. createPolicy(TriggeringPolicy... triggeringPolicy)Creates a CompositeTriggeringPolicy.static CronTriggeringPolicyCronTriggeringPolicy. createPolicy(Configuration configuration, java.lang.String evaluateOnStartup, java.lang.String schedule)Creates a ScheduledTriggeringPolicy.static NoOpTriggeringPolicyNoOpTriggeringPolicy. createPolicy()static OnStartupTriggeringPolicyOnStartupTriggeringPolicy. createPolicy(long minSize)static SizeBasedTriggeringPolicySizeBasedTriggeringPolicy. createPolicy(java.lang.String size)Create a SizeBasedTriggeringPolicy.static DefaultRolloverStrategyDefaultRolloverStrategy. 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 DirectWriteRolloverStrategyDirectWriteRolloverStrategy. 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 PluginFactory in org.apache.logging.log4j.core.appender.rolling.action
Methods in org.apache.logging.log4j.core.appender.rolling.action with annotations of type PluginFactory Modifier and Type Method Description static 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(java.lang.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(java.lang.String size, PathCondition... nestedConditions)Create an IfAccumulatedFileSize condition.static IfFileNameIfFileName. 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 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 PluginFactory Modifier and Type Method Description static PurgePolicyIdlePurgePolicy. createPurgePolicy(java.lang.String timeToLive, java.lang.String checkInterval, java.lang.String timeUnit, Configuration configuration)Create the PurgePolicystatic RouteRoute. createRoute(java.lang.String appenderRef, java.lang.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 PluginFactory Modifier and Type Method Description static <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 PluginFactory Modifier and Type Method Description static StrLookupPropertiesPlugin. configureSubstitutor(Property[] properties, Configuration config)Creates the Properties component.static AppenderRefAppenderRef. 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 CustomLevelsCustomLevels. createCustomLevels(CustomLevelConfig[] customLevels)Create a CustomLevels object to contain all the CustomLevelConfigs.static CustomLevelConfigCustomLevelConfig. createLevel(java.lang.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(java.lang.String name, java.lang.String rawValue, Configuration configuration)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 PluginFactory Modifier and Type Method Description static DynamicThresholdFilterDynamicThresholdFilter. createFilter(java.lang.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, java.lang.String oper, Filter.Result match, Filter.Result mismatch)static MarkerFilterMarkerFilter. createFilter(java.lang.String marker, Filter.Result match, Filter.Result mismatch)Creates the MarkerFilter.static RegexFilterRegexFilter. 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 ScriptFilterScriptFilter. createFilter(AbstractScript script, Filter.Result match, Filter.Result mismatch, Configuration configuration)Creates the ScriptFilter.static StructuredDataFilterStructuredDataFilter. createFilter(KeyValuePair[] pairs, java.lang.String oper, Filter.Result match, Filter.Result mismatch)Creates the StructuredDataFilter.static ThreadContextMapFilterThreadContextMapFilter. createFilter(KeyValuePair[] pairs, java.lang.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(java.lang.String start, java.lang.String end, java.lang.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 PluginFactory Modifier and Type Method Description static CsvLogEventLayoutCsvLogEventLayout. createLayout(Configuration config, java.lang.String format, java.lang.Character delimiter, java.lang.Character escape, java.lang.Character quote, org.apache.commons.csv.QuoteMode quoteMode, java.lang.String nullString, java.lang.String recordSeparator, java.nio.charset.Charset charset, java.lang.String header, java.lang.String footer)static AbstractCsvLayoutCsvParameterLayout. createLayout(Configuration config, java.lang.String format, java.lang.Character delimiter, java.lang.Character escape, java.lang.Character quote, org.apache.commons.csv.QuoteMode quoteMode, java.lang.String nullString, java.lang.String recordSeparator, java.nio.charset.Charset charset, java.lang.String header, java.lang.String footer)static HtmlLayoutHtmlLayout. createLayout(boolean locationInfo, java.lang.String title, java.lang.String contentType, java.nio.charset.Charset charset, java.lang.String fontSize, java.lang.String font)Deprecated.static Layout<?>MessageLayout. createLayout()static PatternLayoutPatternLayout. 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 Rfc5424LayoutRfc5424Layout. 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)Deprecated.Useinsteadstatic SerializedLayoutSerializedLayout. createLayout()Deprecated.static LoggerFieldsLoggerFields. createLoggerFields(KeyValuePair[] keyValuePairs, java.lang.String sdId, java.lang.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 PluginFactory Modifier and Type Method Description static KeyStoreConfigurationKeyStoreConfiguration. createKeyStoreConfiguration(java.lang.String location, char[] password, java.lang.String passwordEnvironmentVariable, java.lang.String passwordFile, java.lang.String keyStoreType, java.lang.String keyManagerFactoryAlgorithm)Creates a KeyStoreConfiguration.static TrustStoreConfigurationTrustStoreConfiguration. createKeyStoreConfiguration(java.lang.String location, char[] password, java.lang.String passwordEnvironmentVariable, java.lang.String passwordFile, java.lang.String keyStoreType, java.lang.String trustManagerFactoryAlgorithm)Creates a KeyStoreConfiguration.static SslConfigurationSslConfiguration. createSSLConfiguration(java.lang.String protocol, KeyStoreConfiguration keyStoreConfig, TrustStoreConfiguration trustStoreConfig, boolean verifyHostName)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 PluginFactory Modifier and Type Method Description static RegexReplacementRegexReplacement. createRegexReplacement(java.util.regex.Pattern regex, java.lang.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 PluginFactory Modifier and Type Method Description static ScriptRefScriptRef. createReference(java.lang.String name, Configuration configuration)static ScriptScript. createScript(java.lang.String name, java.lang.String language, java.lang.String scriptText)static ScriptFileScriptFile. createScript(java.lang.String name, java.lang.String language, java.lang.String filePathOrUri, java.lang.Boolean isWatched, java.nio.charset.Charset charset) -
Uses of PluginFactory in org.apache.logging.log4j.couchdb
Methods in org.apache.logging.log4j.couchdb with annotations of type PluginFactory Modifier and Type Method Description static CouchDbProviderCouchDbProvider. createNoSqlProvider(java.lang.String databaseName, java.lang.String protocol, java.lang.String server, java.lang.String port, java.lang.String username, java.lang.String password, java.lang.String factoryClassName, java.lang.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 PluginFactory Modifier and Type Method Description static CaseConverterResolverFactoryCaseConverterResolverFactory. getInstance()static CounterResolverFactoryCounterResolverFactory. getInstance()static EndOfBatchResolverFactoryEndOfBatchResolverFactory. getInstance()static EventAdditionalFieldInterceptorEventAdditionalFieldInterceptor. getInstance()static EventRootObjectKeyInterceptorEventRootObjectKeyInterceptor. getInstance()static ExceptionResolverFactoryExceptionResolverFactory. getInstance()static ExceptionRootCauseResolverFactoryExceptionRootCauseResolverFactory. getInstance()static LevelResolverFactoryLevelResolverFactory. getInstance()static LoggerResolverFactoryLoggerResolverFactory. getInstance()static MainMapResolverFactoryMainMapResolverFactory. getInstance()static MapResolverFactoryMapResolverFactory. getInstance()static MarkerResolverFactoryMarkerResolverFactory. getInstance()static MessageParameterResolverFactoryMessageParameterResolverFactory. getInstance()static MessageResolverFactoryMessageResolverFactory. getInstance()static PatternResolverFactoryPatternResolverFactory. getInstance()static SourceResolverFactorySourceResolverFactory. getInstance()static ThreadContextDataResolverFactoryThreadContextDataResolverFactory. getInstance()static ThreadContextStackResolverFactoryThreadContextStackResolverFactory. getInstance()static ThreadResolverFactoryThreadResolverFactory. getInstance()static TimestampResolverFactoryTimestampResolverFactory. getInstance()
-