syslog
Version, currently master branch1 version
- master branchlatestFeb 28, 2019
github.com/comandeo/syslog.cr
Syslog client implementation for Crystal
14 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
syslog:
github: comandeo/syslog.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Dmitry Rybakov <dmitry.rybakov@gmail.com>
Dependencies
This version declares no dependencies.
README
# Syslog.cr
[](https://travis-ci.org/comandeo/syslog.cr)
Syslog client implementation for Crystal (work in progress!)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
syslog:
github: comandeo/syslog.cr
```
## Usage
```crystal
require "syslog"
# Use local syslog with defaults:
# - logging to `/dev/log`
# - syslog port: 514
# - log level: INFO
# - application hostname: localhost
# - application name: ""
# - syslog facility: local4
# - log level: INFO
logger = Syslog::Logger.new
logger.info("Something interesting happened")
# Use remote syslog with some custom params
logger = Syslog::Logger.new(
remote: true,
syslog_host: "logger.company.com",
syslog_port: 1234,
appname: "application.company.com",
facility: Syslog::Facility::USER
)
logger.error("Something bad happened")
```
## Contributing
1. Fork it ( https://github.com/comandeo/syslog/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [comandeo](https://github.com/comandeo) Dmitry Rybakov - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Feb 28, 2019
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/comandeo/syslog.cr
Metadata
- Created
- Aug 13, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1