public class GelfOutput extends Object implements MessageOutput
Modifier and Type | Class and Description |
---|---|
static class |
GelfOutput.Config |
static class |
GelfOutput.Descriptor |
static interface |
GelfOutput.Factory |
Constructor and Description |
---|
GelfOutput(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
protected static org.graylog2.gelfclient.transport.GelfTransport |
buildTransport(Configuration configuration) |
boolean |
isRunning() |
void |
stop() |
protected org.graylog2.gelfclient.GelfMessage |
toGELFMessage(Message message) |
void |
write(List<Message> messages) |
void |
write(Message message) |
@Inject public GelfOutput(Configuration configuration) throws MessageOutputConfigurationException
public boolean isRunning()
isRunning
in interface MessageOutput
protected static org.graylog2.gelfclient.transport.GelfTransport buildTransport(Configuration configuration) throws MessageOutputConfigurationException
public void write(Message message) throws Exception
write
in interface MessageOutput
Exception
public void write(List<Message> messages) throws Exception
write
in interface MessageOutput
Exception
protected org.graylog2.gelfclient.GelfMessage toGELFMessage(Message message)
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.