Syslog
Simple collector for the Syslog Message Protocol, as described by The BSD syslog Protocol; RFC3164.
Installation
If available in Hex, the package can be installed
by adding esyslog to your list of dependencies in mix.exs:
def deps do
[{:esyslog, "~> 0.1.0"}]
end
After adding esyslog as a dependency, ensure it is started before your own
application in mix.exs:
def application do
[extra_applications: [:esyslog]]
endUsage
Fairly simple. Create your own module that implements the behaviour Syslog.Event
and then register your module in the Application environment; before your own
application starts. Eg:
config :esyslog, handler: "MyApplication.Syslog.EventHandler"Configuration Options
The following configuration options are available, with their default value shown:
config :esyslog,
enabled: true,
port: 10_000,
handler: "Syslog.DefaultEvent"