| Crates.io | gelf |
| lib.rs | gelf |
| version | 0.5.0 |
| created_at | 2017-02-17 18:25:29.970975+00 |
| updated_at | 2020-02-06 20:15:25.748438+00 |
| description | A library for logging GELF messages to a Graylog compatible server |
| homepage | https://github.com/bzikarsky/gelf-rust |
| repository | https://github.com/bzikarsky/gelf-rust |
| max_upload_size | |
| id | 8557 |
| size | 124,550 |
gelf)A GELF implementation for Rust (Documentation)
TODO: What's GELF?
TODO: What's this library?
TODO: GELF example usecases
TODO: ::log-integration, list of backends, conversion of error levels
To make use of GELF for Rust, simply add it as a dependency in your Cargo.toml. Check for the latest
version at cargo.io:
[dependencies]
gelf = "a.b.c"
If you installed cargo-edit you can easily add the latest
version by running:
cargo add gelf
Finally add the crate to your application:
extern crate gelf;
Two introductory examples (for both standalone and log-integrated uses) can be found
in the crate's documentation.
Additional examples covering different backends and other advanced uses can be found in /examples.
Every one of those can be run with ´cargo´, e.g.:
cargo run --example simple_udp
The documentation is available at https://docs.rs/gelf and will get built automatically for every crate version.
GELF for rust (gelf) is licensed under the MIT-License.
Contributions are very welcome. I will lay out a guide for contributions in a CONTRIBUTING.md. Until then
you are invited to PR/issue as you like :-)
If you have any questions, feel free to contact me by mail,
Twitter or on IRC. I'll usually idle as bzikarsky on
freenode in #graylog.
TODO: CONTRIBUTING.md