public class SyslogAppender extends SyslogAppenderBase<ILoggingEvent>
For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#SyslogAppender
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STACKTRACE_PATTERN |
static String |
DEFAULT_SUFFIX_PATTERN |
sos, suffixPatternname, startedcontext| Constructor and Description |
|---|
SyslogAppender() |
| Modifier and Type | Method and Description |
|---|---|
Layout<ILoggingEvent> |
buildLayout() |
int |
getSeverityForEvent(Object eventObject) |
String |
getStackTracePattern()
|
boolean |
isThrowableExcluded() |
protected void |
postProcess(Object eventObject,
OutputStream sw) |
void |
setStackTracePattern(String stackTracePattern)
Stack trace lines are sent to the syslog server separately from the main message
For stack trace lines, the stackTracePattern is used instead of
SyslogAppenderBase.suffixPattern. |
void |
setThrowableExcluded(boolean throwableExcluded)
Setting throwableExcluded to true causes no Throwable's stack trace data to be sent to
the syslog daemon.
|
void |
start() |
append, facilityStringToint, getFacility, getLayout, getLazy, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, setFacility, setLayout, setLazy, setMaxMessageSize, setPort, setSuffixPattern, setSyslogHost, stopaddFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic static final String DEFAULT_SUFFIX_PATTERN
public static final String DEFAULT_STACKTRACE_PATTERN
public void start()
start in interface LifeCyclestart in class SyslogAppenderBase<ILoggingEvent>public int getSeverityForEvent(Object eventObject)
getSeverityForEvent in class SyslogAppenderBase<ILoggingEvent>protected void postProcess(Object eventObject, OutputStream sw)
postProcess in class SyslogAppenderBase<ILoggingEvent>public Layout<ILoggingEvent> buildLayout()
buildLayout in class SyslogAppenderBase<ILoggingEvent>public boolean isThrowableExcluded()
public void setThrowableExcluded(boolean throwableExcluded)
throwableExcluded - public String getStackTracePattern()
public void setStackTracePattern(String stackTracePattern)
SyslogAppenderBase.suffixPattern.
The stackTracePattern option allows specification of a separately format for the
non-standardized part of stack trace lines.stackTracePattern - Copyright © 2005–2014 QOS.ch. All rights reserved.