Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/federicoceratto/nim-syslog
- Owner: FedericoCeratto
- License: lgpl-3.0
- Created: 2015-04-29T15:41:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-27T20:22:18.000Z (about 5 years ago)
- Last Synced: 2023-03-22T12:49:34.733Z (almost 2 years ago)
- Topics: logging, nim, nim-lang, syslog
- Language: Nim
- Size: 29.3 KB
- Stars: 20
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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 syslogsyslog.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.