|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.net.SyslogAppenderBase<E>
E
- public abstract class SyslogAppenderBase<E>
Base class for SyslogAppender.
Field Summary | |
---|---|
protected String |
suffixPattern
|
Fields inherited from class ch.qos.logback.core.AppenderBase |
---|
name, started |
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
SyslogAppenderBase()
|
Method Summary | |
---|---|
protected void |
append(E eventObject)
|
abstract Layout<E> |
buildLayout(String facilityStr)
|
static int |
facilityStringToint(String facilityStr)
Returns the integer value corresponding to the named syslog facility. |
String |
getFacility()
Returns the string value of the Facility option. |
Layout<E> |
getLayout()
|
int |
getPort()
|
abstract int |
getSeverityForEvent(Object eventObject)
|
String |
getSuffixPattern()
See {@link #setSuffixPattern(String). |
String |
getSyslogHost()
Returns the value of the SyslogHost option. |
protected void |
postProcess(Object event,
OutputStream sw)
|
void |
setFacility(String facilityStr)
The Facility option must be set one of the strings KERN, USER, MAIL, DAEMON, AUTH, SYSLOG, LPR, NEWS, UUCP, CRON, AUTHPRIV, FTP, NTP, AUDIT, ALERT, CLOCK, LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. |
void |
setLayout(Layout<E> layout)
|
void |
setPort(int port)
The port number on the syslog server to connect to. |
void |
setSuffixPattern(String suffixPattern)
The suffixPattern option specifies the format of the non-standardized part of the message sent to the syslog server. |
void |
setSyslogHost(String syslogHost)
The SyslogHost option is the name of the the syslog host where log output should go. |
void |
start()
|
void |
stop()
|
Methods inherited from class ch.qos.logback.core.AppenderBase |
---|
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString |
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext |
Field Detail |
---|
protected String suffixPattern
Constructor Detail |
---|
public SyslogAppenderBase()
Method Detail |
---|
public void start()
start
in interface LifeCycle
start
in class AppenderBase<E>
public abstract Layout<E> buildLayout(String facilityStr)
public abstract int getSeverityForEvent(Object eventObject)
protected void append(E eventObject)
append
in class AppenderBase<E>
protected void postProcess(Object event, OutputStream sw)
public static int facilityStringToint(String facilityStr)
IllegalArgumentException
- if the facility string is not recognizedpublic String getSyslogHost()
public void setSyslogHost(String syslogHost)
public String getFacility()
setFacility(java.lang.String)
for the set of allowed values.
public void setFacility(String facilityStr)
See SyslogConstants
and RFC 3164 for more information about the
Facility option.
public int getPort()
public void setPort(int port)
public Layout<E> getLayout()
public void setLayout(Layout<E> layout)
public void stop()
stop
in interface LifeCycle
stop
in class AppenderBase<E>
public String getSuffixPattern()
public void setSuffixPattern(String suffixPattern)
suffixPattern
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |