Package io.dropwizard.logging.common
Class UdpSocketAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
java.lang.Object
io.dropwizard.logging.common.AbstractAppenderFactory<E>
io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory<E>
io.dropwizard.logging.common.UdpSocketAppenderFactory<E>
- All Implemented Interfaces:
Discoverable
,AppenderFactory<E>
public class UdpSocketAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
extends AbstractOutputStreamAppenderFactory<E>
An
AppenderFactory
implementation which provides an appender that writes events to an UDP socket.
Configuration Parameters:
Name | Default | Description |
host |
localhost |
The hostname of the UDP server. |
port |
514 |
The port on which the UDP server is listening. |
-
Field Summary
Fields inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
layout, logFormat, threshold, timeZone
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory
build
Methods inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
buildLayout, getDiscardingThreshold, getFilterFactories, getLayout, getLogFormat, getMessageRate, getQueueSize, getThreshold, getTimeZone, isIncludeCallerData, setDiscardingThreshold, setFilterFactories, setIncludeCallerData, setLayout, setLogFormat, setMessageRate, setNeverBlock, setQueueSize, setThreshold, setTimeZone, setTimeZone, wrapAsync, wrapAsync
-
Constructor Details
-
UdpSocketAppenderFactory
public UdpSocketAppenderFactory()
-
-
Method Details
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
appender
protected ch.qos.logback.core.OutputStreamAppender<E> appender(ch.qos.logback.classic.LoggerContext context) - Specified by:
appender
in classAbstractOutputStreamAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
-