net.kencochrane.raven.log4j
Class AsyncSentryAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
org.apache.log4j.AsyncAppender
net.kencochrane.raven.log4j.AsyncSentryAppender
- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.AppenderAttachable, org.apache.log4j.spi.OptionHandler
public class AsyncSentryAppender
- extends org.apache.log4j.AsyncAppender
A Log4J appender that sends events asynchronously to Sentry.
This appender extends Log4J's AsyncAppender. If you use a log4j.xml file to configure Log4J, you can use that
class directly to wrap a SentryAppender. If you use a log4j.properties file -- which doesn't provide a way to
configure the AsyncAppender -- to configure Log4J and you need to send events asynchronously, you can use
this class instead.
| 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, setLocationInfo |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
AsyncSentryAppender
public AsyncSentryAppender()
getSentryDsn
public String getSentryDsn()
setSentryDsn
public void setSentryDsn(String sentryDsn)
isMessageCompressionEnabled
public boolean isMessageCompressionEnabled()
setMessageCompressionEnabled
public void setMessageCompressionEnabled(boolean messageCompressionEnabled)
setJsonProcessors
public void setJsonProcessors(String jsonProcessors)
- See
SentryAppender.setJsonProcessors(java.lang.String).
- Parameters:
jsonProcessors - a comma-separated list of fully qualified class
names of JSONProcessors
append
public void append(org.apache.log4j.spi.LoggingEvent event)
- Overrides:
append in class org.apache.log4j.AsyncAppender
activateOptions
public void activateOptions()
- Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler- Overrides:
activateOptions in class org.apache.log4j.AppenderSkeleton
Copyright © 2013. All Rights Reserved.