Usage
Pepe Telemetry can be initialized using envorment variables only or using RUST_LOG environment variable with provided config.
RUST_LOG is common environment variable to set log level. See docs here
Initialization from environment variables
| Variable name | Required | Note |
|---|---|---|
RUST_LOG_FORMAT |
No | Log format. Options: plain, json. Default: plain |
init_subscriber_from_env;
info!;
Initialization from config
let config = Config ;
let subscriber = get_subscriber;
init_subscriber;
info!;
Tests
Should be run in 1 thread due to environment variables usage.
cargo test -- --test-threads 1