API Reference kvasir v1.0.1
Modules
Logger backend for Kvasir to send the log messages to a syslog server. This backend is creating an UDP client to send the syslog messages as a client.
Syslog structure for storing the message.
Creates a syslog client. It requires a port from where we are going to send the message to the syslog server. It could be useful to create a pool of clients to send the syslog messages.
The decoder is a consumer from the server, it's getting each string from the server and providing its decoded form as a producer.
Encode a syslog structure (see Kvasir.Syslog
) as string.
It uses the String.Chars
protocol to implement to_string/1
function and let us convert the structure into a string.
Parse the syslog message and encode it as a syslog structure.
Creates an UDP server for listening for syslog messages.
The default port for listening for new incoming messages is 5544.
See start_link/1
for checking the options you can use.