public class UdpSocketAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractOutputStreamAppenderFactory<E>
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. |
layout, logFormat, threshold, timeZone
Constructor and Description |
---|
UdpSocketAppenderFactory() |
Modifier and Type | Method and Description |
---|---|
protected ch.qos.logback.core.OutputStreamAppender<E> |
appender(ch.qos.logback.classic.LoggerContext context) |
String |
getHost() |
int |
getPort() |
void |
setHost(String host) |
void |
setPort(int port) |
build
buildLayout, getDiscardingThreshold, getFilterFactories, getLayout, getLogFormat, getMessageRate, getQueueSize, getThreshold, getTimeZone, isIncludeCallerData, setDiscardingThreshold, setFilterFactories, setIncludeCallerData, setLayout, setLogFormat, setMessageRate, setNeverBlock, setQueueSize, setThreshold, setTimeZone, setTimeZone, wrapAsync, wrapAsync
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
protected ch.qos.logback.core.OutputStreamAppender<E> appender(ch.qos.logback.classic.LoggerContext context)
appender
in class AbstractOutputStreamAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
Copyright © 2019. All rights reserved.