Struct env_logger::Env
[−]
[src]
pub struct Env<'a> { /* fields omitted */ }
Set of environment variables to configure from.
By default, the Env
will read the following environment variables:
RUST_LOG
: the level filterRUST_LOG_STYLE
: whether or not to print styles with records.
These sources can be configured using the builder methods on Env
.
Methods
impl<'a> Env<'a>
[src]
fn new() -> Self
[src]
Get a default set of environment variables.
fn filter<E>(self, filter_env: E) -> Self where
E: Into<Cow<'a, str>>,
[src]
E: Into<Cow<'a, str>>,
Specify an environment variable to read the filter from.
fn write_style<E>(self, write_style_env: E) -> Self where
E: Into<Cow<'a, str>>,
[src]
E: Into<Cow<'a, str>>,
Specify an environment variable to read the style from.
Trait Implementations
impl<'a> Debug for Env<'a>
[src]
impl<'a, T> From<T> for Env<'a> where
T: Into<Cow<'a, str>>,
[src]
T: Into<Cow<'a, str>>,