Package com.spotify.logging.logback
Class MillisecondPrecisionSyslogAppender
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.AppenderBase<E>
-
- ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
- ch.qos.logback.classic.net.SyslogAppender
-
- com.spotify.logging.logback.MillisecondPrecisionSyslogAppender
-
- All Implemented Interfaces:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.LifeCycle
- Direct Known Subclasses:
SpotifyInternalAppender
public class MillisecondPrecisionSyslogAppender extends ch.qos.logback.classic.net.SyslogAppender
ASyslogAppender
with millisecond timestamp precision.
-
-
Constructor Summary
Constructors Constructor Description MillisecondPrecisionSyslogAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(ch.qos.logback.classic.spi.ILoggingEvent eventObject)
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>
buildLayout()
Charset
getCharset()
protected void
postProcess(Object eventObject, OutputStream sw)
void
setCharset(Charset charset)
void
start()
-
Methods inherited from class ch.qos.logback.classic.net.SyslogAppender
createOutputStream, getSeverityForEvent, getStackTracePattern, isThrowableExcluded, setStackTracePattern, setThrowableExcluded
-
Methods inherited from class ch.qos.logback.core.net.SyslogAppenderBase
facilityStringToint, getFacility, getLayout, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, 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, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
start
in classch.qos.logback.classic.net.SyslogAppender
-
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent eventObject)
- Overrides:
append
in classch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
postProcess
protected void postProcess(Object eventObject, OutputStream sw)
- Overrides:
postProcess
in classch.qos.logback.classic.net.SyslogAppender
-
buildLayout
public ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> buildLayout()
- Overrides:
buildLayout
in classch.qos.logback.classic.net.SyslogAppender
-
getCharset
public Charset getCharset()
- Overrides:
getCharset
in classch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
- Returns:
- the charset used for encoding the output
-
setCharset
public void setCharset(Charset charset)
- Overrides:
setCharset
in classch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
- Parameters:
charset
- the charset to use for encoding the output
-
-