gelf_logger
The Graylog Extended Log Format (GELF) is a log format that avoids the shortcomings of classic log formats. GELF is a great choice for logging from within applications. There are libraries and appenders for many programming languages and logging frameworks so it is easy to implement. You could use GELF to send every exception as a log message to your Graylog cluster.
The logger will:
- serialize log entries using the serde_gelf crate.
- bufferize the result into memory.
- batch send over network using TCP/TLS.
Example
extern crate gelf_logger;
extern crate log;
extern crate serde_derive;
extern crate serde_value;
use GelfLevel;
use Config;
License
Licensed under BSD 3-Clause License or (https://opensource.org/licenses/BSD-3-Clause)