# Functions
DropPolicy will drop the message if the channel is full.
NewHook creates a hook to be added to an instance of logger.
NewStack returns a new stack.
NewTCPWriter returns a new TCP GELF Writer.
NewUDPWriter returns a new GELF Writer.
# Constants
Used to control GELF chunking.
From /usr/include/sys/syslog.h.
# Variables
Set graylog.BufSize = <value> _before_ calling NewHook Once the buffer is full, logging will start blocking, waiting for slots to be available in the queue.
# Structs
Config is the required configuration for creating a Graylog hook.
Hook to send logs to a logging service compatible with the Graylog API and the GELF format.
Message represents the contents of the GELF message.
Stack is a basic LIFO stack that resizes as needed.
TCPWriter implements io.Writer and is used to send both discret messages to a graylog2 server, or data from a stream-oriented interface (like the functions in log).
UDPWriter implements io.Writer and is used to send both discrete messages to a graylog2 server, or data from a stream-oriented interface (like the functions in log).
# Type aliases
What compression type the writer should use when sending messages to the graylog2 server.
MergeFields defines a function to merge fields.