E -
public abstract class SyslogAppenderBase<E> extends AppenderBase<E>
| Modifier and Type | Field and Description |
|---|---|
protected String |
suffixPattern
|
name, startedcontext| Constructor and Description |
|---|
SyslogAppenderBase()
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(E eventObject)
|
abstract Layout |
buildLayout()
|
abstract SyslogOutputStream |
createOutputStream()
|
static int |
facilityStringToint(String
Returns the integer value corresponding to the named syslog facility.
|
Charset |
getCharset()
Returns the Charset used to encode String messages into byte sequences when writing to syslog.
|
String |
getFacility()
Returns the string value of the
Facility option.
|
Layout |
getLayout()
|
int |
getMaxMessageSize()
|
int |
getPort()
|
abstract int |
getSeverityForEvent(Object
|
String |
getSuffixPattern()
See {@link #setSuffixPattern(String).
|
String |
getSyslogHost()
Returns the value of the
SyslogHost option.
|
protected void |
postProcess(Object
|
void |
setCharset(Charset
The Charset to use when encoding messages into byte sequences.
|
void |
setFacility(String
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
|
void |
setMaxMessageSize(int maxMessageSize)
Maximum size for the syslog message (in characters); messages longer than this are truncated.
|
void |
setPort(int port)
The port number on the syslog server to connect to.
|
void |
setSuffixPattern(String
The
suffixPattern option specifies the format of the non-standardized part of the message sent to the syslog server.
|
void |
setSyslogHost(String
The
SyslogHost option is the name of the the syslog host where log output should go.
|
void |
start()
|
void |
stop()
|
addFilter, 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, setContextprotected StringsuffixPattern
public void start()
public abstract SyslogOutputStreamcreateOutputStream() throws UnknownHostException , SocketException
UnknownHostException
SocketException
public abstract int getSeverityForEvent(ObjecteventObject)
protected void append(E eventObject)
protected void postProcess(Objectevent, OutputStream sw)
public static int facilityStringToint(StringfacilityStr)
IllegalArgumentException - if the facility string is not recognized
public StringgetSyslogHost()
public void setSyslogHost(StringsyslogHost)
public StringgetFacility()
setFacility(java.lang.String) for the set of allowed values.
public void setFacility(StringfacilityStr)
See SyslogConstants and RFC 3164 for more information about the Facility option.
public int getPort()
public void setPort(int port)
public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
public void stop()
public StringgetSuffixPattern()
public void setSuffixPattern(StringsuffixPattern)
suffixPattern -
public CharsetgetCharset()
public void setCharset(Charsetcharset)
charset -