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 java.lang.String |
DEFAULT_STACKTRACE_PATTERN |
static java.lang.String |
DEFAULT_SUFFIX_PATTERN |
Constructor and Description |
---|
SyslogAppender() |
Modifier and Type | Method and Description |
---|---|
Layout<ILoggingEvent> |
buildLayout() |
SyslogOutputStream |
createOutputStream() |
int |
getSeverityForEvent(java.lang.Object eventObject)
Convert a level to equivalent syslog severity.
|
java.lang.String |
getStackTracePattern()
See {@link #setStackTracePattern(String).
|
boolean |
isThrowableExcluded() |
void |
setStackTracePattern(java.lang.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() |
facilityStringToint, getCharset, getFacility, getLayout, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, setCharset, setFacility, setLayout, setMaxMessageSize, setPort, setSuffixPattern, setSyslogHost, stop
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final java.lang.String DEFAULT_SUFFIX_PATTERN
public static final java.lang.String DEFAULT_STACKTRACE_PATTERN
public void start()
start
in interface LifeCycle
start
in class SyslogAppenderBase<ILoggingEvent>
public SyslogOutputStream createOutputStream() throws java.net.SocketException, java.net.UnknownHostException
createOutputStream
in class SyslogAppenderBase<ILoggingEvent>
java.net.SocketException
java.net.UnknownHostException
public int getSeverityForEvent(java.lang.Object eventObject)
getSeverityForEvent
in class SyslogAppenderBase<ILoggingEvent>
SyslogAppenderBase.getSeverityForEvent(java.lang.Object)
public Layout<ILoggingEvent> buildLayout()
buildLayout
in class SyslogAppenderBase<ILoggingEvent>
public boolean isThrowableExcluded()
public void setThrowableExcluded(boolean throwableExcluded)
throwableExcluded
- public java.lang.String getStackTracePattern()
public void setStackTracePattern(java.lang.String stackTracePattern)
SyslogAppenderBase.suffixPattern
.
The stackTracePattern option allows specification of a separately format for the
non-standardized part of stack trace lines.stackTracePattern
- Copyright © 2010 - 2020 Adobe. All Rights Reserved