Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A small nif to tap into syslog from an Erlang node.
Erlang C
branch: master

This branch is 8 commits ahead of ngerakines:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.