Loki Logger
A loki logger for the log facade.
Examples
extern crate log;
extern crate loki_logger;
use LevelFilter;
async
extern crate log;
extern crate loki_logger;
use FromIterator;
use HashMap;
use LevelFilter;
async
Use with extra labels
Starting from 0.4.7, the log crate started introducing the new key/value system for structured logging.
This crate makes heavy use of such system as to create and send custom loki labels.
If you want to use this system, you have to use the git version of the log crate and enable the kv_unstable feature:
[]
# It is recommended that you pin this version to a specific commit to avoid issues.
= "https://github.com/rust-lang/log.git"
= ["kv_unstable"]
This feature will allow you to use the log facade as such:
extern crate log;
extern crate loki_logger;
use FromIterator;
use HashMap;
use LevelFilter;
async