Package ch.qos.logback.classic.net
Class SyslogAppender
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.AppenderBase<E>
-
- ch.qos.logback.core.net.SyslogAppenderBase<ILoggingEvent>
-
- ch.qos.logback.classic.net.SyslogAppender
-
- All Implemented Interfaces:
Appender<ILoggingEvent>
,ContextAware
,FilterAttachable<ILoggingEvent>
,LifeCycle
@Deprecated(since="2022-01-27") public class SyslogAppender extends SyslogAppenderBase<ILoggingEvent>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.This appender can be used to send messages to a remote syslog daemon.For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#SyslogAppender
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_STACKTRACE_PATTERN
Deprecated.static java.lang.String
DEFAULT_SUFFIX_PATTERN
Deprecated.
-
Constructor Summary
Constructors Constructor Description SyslogAppender()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Layout<ILoggingEvent>
buildLayout()
Deprecated.SyslogOutputStream
createOutputStream()
Deprecated.int
getSeverityForEvent(java.lang.Object eventObject)
Deprecated.Convert a level to equivalent syslog severity.java.lang.String
getStackTracePattern()
Deprecated.See {@link #setStackTracePattern(String).boolean
isThrowableExcluded()
Deprecated.void
setStackTracePattern(java.lang.String stackTracePattern)
Deprecated.Stack trace lines are sent to the syslog server separately from the main message For stack trace lines, the stackTracePattern is used instead ofSyslogAppenderBase.suffixPattern
.void
setThrowableExcluded(boolean throwableExcluded)
Deprecated.Setting throwableExcluded to true causes no Throwable's stack trace data to be sent to the syslog daemon.void
start()
Deprecated.-
Methods inherited from class ch.qos.logback.core.net.SyslogAppenderBase
facilityStringToint, getCharset, getFacility, getLayout, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, setCharset, setFacility, setLayout, setMaxMessageSize, setPort, setSuffixPattern, setSyslogHost, 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, 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
-
-
-
-
Field Detail
-
DEFAULT_SUFFIX_PATTERN
public static final java.lang.String DEFAULT_SUFFIX_PATTERN
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_STACKTRACE_PATTERN
public static final java.lang.String DEFAULT_STACKTRACE_PATTERN
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start()
Deprecated.- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classSyslogAppenderBase<ILoggingEvent>
-
createOutputStream
public SyslogOutputStream createOutputStream() throws java.net.SocketException, java.net.UnknownHostException
Deprecated.- Specified by:
createOutputStream
in classSyslogAppenderBase<ILoggingEvent>
- Throws:
java.net.SocketException
java.net.UnknownHostException
-
getSeverityForEvent
public int getSeverityForEvent(java.lang.Object eventObject)
Deprecated.Convert a level to equivalent syslog severity. Only levels for printing methods i.e DEBUG, WARN, INFO and ERROR are converted.- Specified by:
getSeverityForEvent
in classSyslogAppenderBase<ILoggingEvent>
- See Also:
SyslogAppenderBase.getSeverityForEvent(java.lang.Object)
-
buildLayout
public Layout<ILoggingEvent> buildLayout()
Deprecated.- Specified by:
buildLayout
in classSyslogAppenderBase<ILoggingEvent>
-
isThrowableExcluded
public boolean isThrowableExcluded()
Deprecated.
-
setThrowableExcluded
public void setThrowableExcluded(boolean throwableExcluded)
Deprecated.Setting throwableExcluded to true causes no Throwable's stack trace data to be sent to the syslog daemon. By default, stack trace data is sent to syslog daemon.- Parameters:
throwableExcluded
-- Since:
- 1.0.4
-
getStackTracePattern
public java.lang.String getStackTracePattern()
Deprecated.See {@link #setStackTracePattern(String).- Returns:
- the stackTraceSuffixPattern
- Since:
- 1.0.4
-
setStackTracePattern
public void setStackTracePattern(java.lang.String stackTracePattern)
Deprecated.Stack trace lines are sent to the syslog server separately from the main message For stack trace lines, the stackTracePattern is used instead ofSyslogAppenderBase.suffixPattern
. The stackTracePattern option allows specification of a separately format for the non-standardized part of stack trace lines.- Parameters:
stackTracePattern
-- Since:
- 1.0.4
-
-