public class DefaultGelfSenderProvider extends Object implements GelfSenderProvider
GelfSender that creates UDP, TCP and HTTP senders.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
Default GELF port.
|
| Constructor and Description |
|---|
DefaultGelfSenderProvider() |
| Modifier and Type | Method and Description |
|---|---|
GelfSender |
create(GelfSenderConfiguration configuration)
Create the sender based on the passed configuration.
|
boolean |
supports(String host) |
public static final int DEFAULT_PORT
public boolean supports(String host)
supports in interface GelfSenderProviderhost - the host stringpublic GelfSender create(GelfSenderConfiguration configuration) throws IOException
GelfSenderProvidercreate in interface GelfSenderProviderconfiguration - the sender configurationIOException - if there is an error in the underlying protocolCopyright © 2013–2023. All rights reserved.