gelf
Version, currently master branch1 version
- master branchlatestJul 23, 2020
github.com/benoist/gelf-crystal
GELF UDP logger
5 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
gelf:
github: benoist/gelf-crystal
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
- Benoist
Dependencies
This version declares no dependencies.
README
gelf
A GELF compatible logger http://docs.graylog.org/en/latest/pages/gelf.html
Installation
Add this to your application's shard.yml:
dependencies:
gelf:
github: benoist/gelf-crystal
Usage
require "gelf"
logger ||= GELF::Logger.new("localhost", port, "WAN").configure do |config|
config.facility = "gelf-cr"
config.host = "localhost"
config.level = Logger::DEBUG
end
logger.debug("some debug message")
logger.info("some info message")
logger.debug({ "short_message" => "some short message", "_extra_var" => "some var"}) # also set the short message
Contributing
- Fork it ( https://github.com/[your-github-name]/gelf/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
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
- Jul 23, 2020
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/benoist/gelf-crystal
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1