This crate enables libraries that use the log
crate (or an equivalent) to communicate with
the actual logger, without requiring the library to know about the type of logger that is used.
The crate
On the library side
You can set a value by accessing the Settings
struct through the settings
function.
extern crate log_settings;
settings.indentation += 1;
On the executable side
You can read a value by accessing the Settings
struct through the settings
function.
extern crate log;
extern crate env_logger;
extern crate log_settings;
use env;
use ;
use LogBuilder;