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 void stop()
stop in interface MessageOutputstop in interface Stoppablepublic boolean isRunning()
isRunning in interface MessageOutputprotected static org.graylog2.gelfclient.transport.GelfTransport buildTransport(Configuration configuration) throws MessageOutputConfigurationException
public void write(Message message) throws Exception
write in interface MessageOutputExceptionpublic void write(List<Message> messages) throws Exception
write in interface MessageOutputExceptionprotected org.graylog2.gelfclient.GelfMessage toGELFMessage(Message message)
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.