https://github.com/dasch/remote_syslog
https://github.com/dasch/remote_syslog
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dasch/remote_syslog
- Owner: dasch
- License: mit
- Created: 2013-11-13T13:27:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-13T16:30:00.000Z (over 12 years ago)
- Last Synced: 2025-01-28T20:41:58.846Z (over 1 year ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# RemoteSyslog
Allows streaming log messages to any Syslog compliant log server. The messages
will be streamed over TCP, ensure reliable delivery.
It is possible to configure RemoteSyslog with multiple Syslog backends - if a
backend fails, another will be chosen instead.
## Installation
Add this line to your application's Gemfile:
gem 'remote_syslog'
And then execute:
$ bundle
Or install it yourself as:
$ gem install remote_syslog
## Usage
```ruby
logger = RemoteSyslog::Logger.new("syslog1.example.com:6514", "syslog2.example.com:6514")
logger.info "HELLO WORLD!"
```
## Contributing
1. Fork it
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 new Pull Request