No description
Find a file
2019-08-17 14:52:48 +01:00
.circleci Add CircleCI OSX build 2019-08-17 14:52:48 +01:00
tests Thread support is completely optional now (no --threads:on required for single-threaded applications) 2015-08-31 11:49:30 +06:00
.gitignore Made module gcsafe 2015-07-21 19:46:27 +06:00
.travis.yml Test multithreading 2016-11-27 12:31:51 +00:00
LICENSE Initial commit 2015-04-29 16:41:48 +01:00
README.adoc Add CircleCI OSX build 2019-08-17 14:52:48 +01:00
syslog.nim Fixed output display 2019-08-17 03:28:00 +02:00
syslog.nimble Incremented version by 1 patch 2019-08-17 02:27:19 +02:00

## nim-syslog

A simple syslog module for Nim. Supports Linux, BSD and Mac OS X.

image:https://img.shields.io/badge/status-beta-orange.svg[badge]
image:https://img.shields.io/github/tag/FedericoCeratto/nim-syslog.svg[tags]
image:https://img.shields.io/badge/License-LGPL%20v3-blue.svg[License]
image:https://circleci.com/gh/FedericoCeratto/nim-syslog.svg?style=svg["CircleCI", link="https://circleci.com/gh/FedericoCeratto/nim-syslog"]
image:https://api.travis-ci.org/FedericoCeratto/nim-syslog.svg?branch=master[TravisCI]

Usage:

[source,nim]
----
import syslog

syslog.openlog("MyApp", logUser)  # optional
syslog.info("Good news")
syslog.debug("Psst")
syslog(logAlert, "Alert!")
syslog.closelog()  # optional
----

Supported priorities: emerg, alert, crit, error, info, debug, notice, warn[ing]

[source,bash]
----
nimble install syslog
----

### Contributing

Testing and PRs are welcome.