Class 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
    A SyslogAppender with millisecond timestamp precision.
    • Field Summary

      • Fields inherited from class ch.qos.logback.classic.net.SyslogAppender

        DEFAULT_STACKTRACE_PATTERN, DEFAULT_SUFFIX_PATTERN
      • Fields inherited from class ch.qos.logback.core.net.SyslogAppenderBase

        suffixPattern
      • Fields inherited from class ch.qos.logback.core.AppenderBase

        name, started
      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • 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
      • Methods inherited from interface ch.qos.logback.core.spi.ContextAware

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
    • Constructor Detail

      • MillisecondPrecisionSyslogAppender

        public MillisecondPrecisionSyslogAppender()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.classic.net.SyslogAppender
      • append

        protected void append​(ch.qos.logback.classic.spi.ILoggingEvent eventObject)
        Overrides:
        append in class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
      • postProcess

        protected void postProcess​(Object eventObject,
                                   OutputStream sw)
        Overrides:
        postProcess in class ch.qos.logback.classic.net.SyslogAppender
      • buildLayout

        public ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> buildLayout()
        Overrides:
        buildLayout in class ch.qos.logback.classic.net.SyslogAppender
      • getCharset

        public Charset getCharset()
        Overrides:
        getCharset in class ch.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 class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
        Parameters:
        charset - the charset to use for encoding the output