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 filter
  • RUST_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]

[src]

Get a default set of environment variables.

[src]

Specify an environment variable to read the filter from.

[src]

Specify an environment variable to read the style from.

Trait Implementations

impl<'a> Debug for Env<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a, T> From<T> for Env<'a> where
    T: Into<Cow<'a, str>>, 
[src]

[src]

Performs the conversion.

impl<'a> Default for Env<'a>
[src]

[src]

Returns the "default value" for a type. Read more