logging-options 0.1.0

Reusable `clap` options for logging (e.g. `--quiet` vs `--debug`) with pluggable logging providers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A set of very common logging [clap] options which also initialize various logging/tracing backends
//!
//! # TODOs
//!
//! - Switch to `tracing` (e.g. `env_logger`, `tracing`, etc...)
//! - Provide a facility to defer to the app for argument names, especially short `-q` style arg names to work with apps with colliding options
//! - Generalize to a "re-usable component with `clap` arguments" framework?
#![deny(unsafe_code, missing_docs)]

pub mod backend;
mod backends;
mod stdcons;
mod verbosity;

pub use self::backend::Backend;
pub use self::stdcons::StandardConsole;
pub use self::verbosity::Verbosity;