@Plugin(name="JeroMQ", category="Core", elementType="appender", printObject=true) public final class JeroMqAppender extends AbstractAppender
Requires the JeroMQ jar (LGPL as of 0.3.5)
LifeCycle.StateLOGGER| Modifier and Type | Method and Description |
|---|---|
void |
append(LogEvent event)
Logs a LogEvent using whatever logic this Appender wishes to use.
|
static 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) |
void |
start()
Make the Filter available for use.
|
void |
stop()
Cleanup the Filter.
|
String |
toString() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, setHandleraddFilter, getFilter, hasFilter, isFiltered, removeFilterequalsImpl, getState, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStoppingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetState, initialize, isStarted, isStopped@PluginFactory public static JeroMqAppender createAppender(@Required(message="No name provided for JeroMqAppender")@PluginAttribute(value="name") String name, @PluginElement(value="Layout") Layout<?> layout, @PluginElement(value="Filter") Filter filter, @PluginElement(value="Properties") Property[] properties, @PluginAttribute(value="ignoreExceptions") boolean ignoreExceptions, @PluginAttribute(value="affinity",defaultLong=0L) long affinity, @PluginAttribute(value="backlog",defaultLong=100L) long backlog, @PluginAttribute(value="delayAttachOnConnect",defaultBoolean=false) boolean delayAttachOnConnect, @PluginAttribute(value="identity") byte[] identity, @PluginAttribute(value="ipv4Only",defaultBoolean=true) boolean ipv4Only, @PluginAttribute(value="linger",defaultLong=-1L) long linger, @PluginAttribute(value="maxMsgSize",defaultLong=-1L) long maxMsgSize, @PluginAttribute(value="rcvHwm",defaultLong=1000L) long rcvHwm, @PluginAttribute(value="receiveBufferSize",defaultLong=0L) long receiveBufferSize, @PluginAttribute(value="receiveTimeOut",defaultLong=-1L) int receiveTimeOut, @PluginAttribute(value="reconnectIVL",defaultLong=100L) long reconnectIVL, @PluginAttribute(value="reconnectIVLMax",defaultLong=0L) long reconnectIVLMax, @PluginAttribute(value="sendBufferSize",defaultLong=0L) long sendBufferSize, @PluginAttribute(value="sendTimeOut",defaultLong=-1L) int sendTimeOut, @PluginAttribute(value="sndHwm",defaultLong=1000L) long sndHwm, @PluginAttribute(value="tcpKeepAlive",defaultInt=-1) int tcpKeepAlive, @PluginAttribute(value="tcpKeepAliveCount",defaultLong=-1L) long tcpKeepAliveCount, @PluginAttribute(value="tcpKeepAliveIdle",defaultLong=-1L) long tcpKeepAliveIdle, @PluginAttribute(value="tcpKeepAliveInterval",defaultLong=-1L) long tcpKeepAliveInterval, @PluginAttribute(value="xpubVerbose",defaultBoolean=false) boolean xpubVerbose)
public void append(LogEvent event)
Appenderevent - The LogEvent.public void start()
AbstractFilterablestart in interface LifeCyclestart in class AbstractFilterablepublic void stop()
AbstractFilterablestop in interface LifeCyclestop in class AbstractFilterablepublic String toString()
toString in class AbstractAppenderCopyright © 1999-2015 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.