Filter#
Use filter
to configure the log filtering.
// result to `info`, `warning`, `error` and `fatal`.
filter::at_least(level::info);
// all levels
filter::all();
// load level config from the environment variable.
// $ CPP_LOG=DEBUG ./my_server
filter::from_env();