Class DropwizardUdpSocketAppender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>

  • All Implemented Interfaces:
    ch.qos.logback.core.Appender<E>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<E>, ch.qos.logback.core.spi.LifeCycle

    public class DropwizardUdpSocketAppender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
    extends ch.qos.logback.core.OutputStreamAppender<E>
    Sends log events to a UDP server, a connection to which is represented as a stream.
    • Field Summary

      • Fields inherited from class ch.qos.logback.core.OutputStreamAppender

        encoder, lock
      • Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase

        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 OutputStream datagramSocketOutputStream​(String host, int port)  
      void start()  
      • Methods inherited from class ch.qos.logback.core.OutputStreamAppender

        append, closeOutputStream, getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream, stop, subAppend, writeOut
      • Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase

        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

      • DropwizardUdpSocketAppender

        public DropwizardUdpSocketAppender​(String host,
                                           int port)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.core.OutputStreamAppender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
      • datagramSocketOutputStream

        protected OutputStream datagramSocketOutputStream​(String host,
                                                          int port)