A small nif to tap into syslog from an Erlang node.
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with klyr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
c_src
src
Makefile
README.markdown
rebar
rebar.config

README.markdown

A small nif to write to the local syslog daemon inspired by the project JacobVorreuter/erlang_syslog. Patches wanted.

Installation

$ git clone git://github.com/klyr/syslognif.git
$ cd syslognif
$ make

TODO

  • tests

Usage

Easier than you think:

$ erl -pa ebin
1> syslog:open("foo", [pid, cons], local0).
ok
2> syslog:write(err, "This is a dead parrot!").
ok
3> syslog:close().
ok

Syslog options

pid, cons, odelay, ndelay, nowait, perror

Facilities

kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron, authpriv, ftp, local0-7

Priorities

emerge, alert, crit, err, warning, notice, info, debug

For more information about these options see syslog(3) man page.