Kvasir.Syslog.Server (kvasir v1.0.0)
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.
Summary
Functions
Get the port where the syslog server is listening.
Starts the syslog server. You can provide a keyword list of options
Stops the server. It's useful if we need starting a server out of a supervisor, or we need the server will be restarted inside of the supervisor.
Functions
Link to this function
get_port(pid)
@spec get_port(GenServer.server()) :: pos_integer()
Get the port where the syslog server is listening.
Link to this function
start_link(opts)
Starts the syslog server. You can provide a keyword list of options:
port
to indicate the port where the server will start listening.
Link to this function
stop(pid)
@spec stop(GenServer.server()) :: :ok
Stops the server. It's useful if we need starting a server out of a supervisor, or we need the server will be restarted inside of the supervisor.