@Plugin(name="NoSql", category="Core", elementType="appender", printObject=true) public final class NoSqlAppender extends AbstractDatabaseAppender<NoSqlDatabaseManager<?>>
NoSqlObject
, NoSqlConnection
, and NoSqlProvider
to "know" how to write
events to the chosen NoSQL database.
For examples on how to write your own NoSQL provider, see the simple source code for the MongoDB and CouchDB providers.
NoSqlObject
,
NoSqlConnection
,
NoSqlProvider
Modifier and Type | Class and Description |
---|---|
static class |
NoSqlAppender.Builder<B extends NoSqlAppender.Builder<B>>
Builds ConsoleAppender instances.
|
LifeCycle.State
DEFAULT_RECONNECT_INTERVAL_MILLIS
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
ELEMENT_TYPE
Modifier and Type | Method and Description |
---|---|
static NoSqlAppender |
createAppender(String name,
String ignore,
Filter filter,
String bufferSize,
NoSqlProvider<?> provider)
Deprecated.
since 2.11.0; use
NoSqlAppender.Builder . |
static <B extends NoSqlAppender.Builder<B>> |
newBuilder() |
String |
toString() |
append, getLayout, getManager, replaceManager, start, stop
error, error, error, getHandler, getName, ignoreExceptions, parseInt, setHandler, toSerializable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
@Deprecated public static NoSqlAppender createAppender(String name, String ignore, Filter filter, String bufferSize, NoSqlProvider<?> provider)
NoSqlAppender.Builder
.name
- The name of the appender.ignore
- If "true"
(default) exceptions encountered when appending events are logged; otherwise they
are propagated to the caller.filter
- The filter, if any, to use.bufferSize
- If an integer greater than 0, this causes the appender to buffer log events and flush whenever the
buffer reaches this size.provider
- The NoSQL provider that provides connections to the chosen NoSQL database.@PluginBuilderFactory public static <B extends NoSqlAppender.Builder<B>> B newBuilder()
public String toString()
toString
in class AbstractAppender
Copyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.