org.apache.accumulo.core.util
Class AsyncSocketAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
org.apache.log4j.AsyncAppender
org.apache.accumulo.core.util.AsyncSocketAppender
- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.AppenderAttachable, org.apache.log4j.spi.OptionHandler
public class AsyncSocketAppender
- extends org.apache.log4j.AsyncAppender
An asynchronous appender that maintains its own internal socket appender. Unlike AsyncAppender
, this appender can be configured with a Log4J
properties file, although in that case no additional appenders can be added.
Fields inherited from class org.apache.log4j.AsyncAppender |
DEFAULT_BUFFER_SIZE |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Methods inherited from class org.apache.log4j.AsyncAppender |
addAppender, close, getAllAppenders, getAppender, getBlocking, getBufferSize, getLocationInfo, isAttached, removeAllAppenders, removeAppender, removeAppender, requiresLayout, setBlocking, setBufferSize |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
AsyncSocketAppender
public AsyncSocketAppender()
- Creates a new appender.
append
public void append(org.apache.log4j.spi.LoggingEvent event)
- Overrides:
append
in class org.apache.log4j.AsyncAppender
getApplication
public String getApplication()
getPort
public int getPort()
getReconnectionDelay
public int getReconnectionDelay()
getRemoteHost
public String getRemoteHost()
isAdvertiseViaMulticastDNS
public boolean isAdvertiseViaMulticastDNS()
setAdvertiseViaMulticastDNS
public void setAdvertiseViaMulticastDNS(boolean advertiseViaMulticastDNS)
setApplication
public void setApplication(String lapp)
setLocationInfo
public void setLocationInfo(boolean locationInfo)
- Overrides:
setLocationInfo
in class org.apache.log4j.AsyncAppender
setPort
public void setPort(int port)
setReconnectionDelay
public void setReconnectionDelay(int delay)
setRemoteHost
public void setRemoteHost(String host)
Copyright © 2015 Apache Accumulo Project. All rights reserved.