Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/federicoceratto/nim-syslog

Nim syslog module
https://github.com/federicoceratto/nim-syslog

logging nim nim-lang syslog

Last synced: 3 months ago
JSON representation

Nim syslog module

Awesome Lists containing this project

README

        

## 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.