Package ch.qos.logback.core.net
Class SyslogAppenderBase<E>
- java.lang.Object
 - 
- ch.qos.logback.core.spi.ContextAwareBase
 - 
- ch.qos.logback.core.AppenderBase<E>
 - 
- ch.qos.logback.core.net.SyslogAppenderBase<E>
 
 
 
 
- 
- Type Parameters:
 E-
- All Implemented Interfaces:
 Appender<E>,ContextAware,FilterAttachable<E>,LifeCycle
- Direct Known Subclasses:
 SyslogAppender
@Deprecated(since="2022-01-27") public abstract class SyslogAppenderBase<E> extends AppenderBase<E>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.Base class for SyslogAppender. 
- 
- 
Constructor Summary
Constructors Constructor Description SyslogAppenderBase()Deprecated. 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract Layout<E>buildLayout()Deprecated.abstract SyslogOutputStreamcreateOutputStream()Deprecated.static intfacilityStringToint(java.lang.String facilityStr)Deprecated.Returns the integer value corresponding to the named syslog facility.java.nio.charset.CharsetgetCharset()Deprecated.Returns the Charset used to encode String messages into byte sequences when writing to syslog.java.lang.StringgetFacility()Deprecated.Returns the string value of the Facility option.Layout<E>getLayout()Deprecated.intgetMaxMessageSize()Deprecated.intgetPort()Deprecated.abstract intgetSeverityForEvent(java.lang.Object eventObject)Deprecated.java.lang.StringgetSuffixPattern()Deprecated.See {@link #setSuffixPattern(String).java.lang.StringgetSyslogHost()Deprecated.Returns the value of the SyslogHost option.voidsetCharset(java.nio.charset.Charset charset)Deprecated.The Charset to use when encoding messages into byte sequences.voidsetFacility(java.lang.String facilityStr)Deprecated.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.voidsetLayout(Layout<E> layout)Deprecated.voidsetMaxMessageSize(int maxMessageSize)Deprecated.Maximum size for the syslog message (in characters); messages longer than this are truncated.voidsetPort(int port)Deprecated.The port number on the syslog server to connect to.voidsetSuffixPattern(java.lang.String suffixPattern)Deprecated.The suffixPattern option specifies the format of the non-standardized part of the message sent to the syslog server.voidsetSyslogHost(java.lang.String syslogHost)Deprecated.The SyslogHost option is the name of the the syslog host where log output should go.voidstart()Deprecated.voidstop()Deprecated.- 
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, getStatusManager, setContext 
- 
Methods inherited from class java.lang.Object
equals, 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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
start
public void start()
Deprecated.- Specified by:
 startin interfaceLifeCycle- Overrides:
 startin classAppenderBase<E>
 
- 
createOutputStream
public abstract SyslogOutputStream createOutputStream() throws java.net.UnknownHostException, java.net.SocketException
Deprecated.- Throws:
 java.net.UnknownHostExceptionjava.net.SocketException
 
- 
getSeverityForEvent
public abstract int getSeverityForEvent(java.lang.Object eventObject)
Deprecated. 
- 
facilityStringToint
public static int facilityStringToint(java.lang.String facilityStr)
Deprecated.Returns the integer value corresponding to the named syslog facility.- Throws:
 java.lang.IllegalArgumentException- if the facility string is not recognized
 
- 
getSyslogHost
public java.lang.String getSyslogHost()
Deprecated.Returns the value of the SyslogHost option. 
- 
setSyslogHost
public void setSyslogHost(java.lang.String syslogHost)
Deprecated.The SyslogHost option is the name of the the syslog host where log output should go. WARNING If the SyslogHost is not set, then this appender will fail. 
- 
getFacility
public java.lang.String getFacility()
Deprecated.Returns the string value of the Facility option. SeesetFacility(java.lang.String)for the set of allowed values. 
- 
setFacility
public void setFacility(java.lang.String facilityStr)
Deprecated.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. Case is not important.See
SyslogConstantsand RFC 3164 for more information about the Facility option. 
- 
getPort
public int getPort()
Deprecated.- Returns:
 
 
- 
setPort
public void setPort(int port)
Deprecated.The port number on the syslog server to connect to. Normally, you would not want to change the default value, that is 514. 
- 
getMaxMessageSize
public int getMaxMessageSize()
Deprecated.- Returns:
 
 
- 
setMaxMessageSize
public void setMaxMessageSize(int maxMessageSize)
Deprecated.Maximum size for the syslog message (in characters); messages longer than this are truncated. The default value is 65400 (which is near the maximum for syslog-over-UDP). Note that the value is characters; the number of bytes may vary if non-ASCII characters are present. 
- 
stop
public void stop()
Deprecated.- Specified by:
 stopin interfaceLifeCycle- Overrides:
 stopin classAppenderBase<E>
 
- 
getSuffixPattern
public java.lang.String getSuffixPattern()
Deprecated.See {@link #setSuffixPattern(String).- Returns:
 
 
- 
setSuffixPattern
public void setSuffixPattern(java.lang.String suffixPattern)
Deprecated.The suffixPattern option specifies the format of the non-standardized part of the message sent to the syslog server.- Parameters:
 suffixPattern-
 
- 
getCharset
public java.nio.charset.Charset getCharset()
Deprecated.Returns the Charset used to encode String messages into byte sequences when writing to syslog. 
- 
setCharset
public void setCharset(java.nio.charset.Charset charset)
Deprecated.The Charset to use when encoding messages into byte sequences.- Parameters:
 charset-
 
 - 
 
 -