syslog.cr
Adds syslog functionality to crystal via LibC bindings.
Installation
Add this to your application's shard.yml
:
dependencies:
syslog:
github: chris-huxtable/syslog.cr
Usage
Requiring:
require "syslog"
Basic Usage:
Syslog.emergency("This is a notice message")
Syslog.alert("This is a notice message")
Syslog.critical("This is a notice message")
Syslog.error("This is a notice message")
Syslog.warning("This is a notice message")
Syslog.notice("This is a notice message")
Syslog.info("This is a info message")
Syslog.debug("This is a debug message")
Facility Usage:
Syslog.info("This is a info message sent to the LOCAL0 Facility", Syslog::Facility::Local0)
Contributing
- Fork it (https://github.com/chris-huxtable/syslog.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Chris Huxtable - creator, maintainer