clap_logflag/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! [work in progress]
//!
//! The [clap-logflag](https://crates.io/crates/clap-logflag) library adds a `--log` flag to clap based applications
//! to allow CLI users to configure logging from the command line.
//! It can log to stderr, files and syslog.

#![forbid(unsafe_code)]
// TODO #![deny(missing_docs)]

mod clap;
mod config;
mod fern;
mod parser;

pub use clap::LogArgs;
pub use config::{LogDestination, LogDestinationConfig, LoggingConfig};
pub use fern::_init_logging;