Struct env_logger::Env[][src]

pub struct Env<'a> { /* fields omitted */ }

Set of environment variables to configure from.

Default environment variables

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]

Get a default set of environment variables.

Specify an environment variable to read the filter from.

Specify an environment variable to read the filter from.

If the variable is not set, the default value will be used.

Specify an environment variable to read the style from.

Specify an environment variable to read the style from.

If the variable is not set, the default value will be used.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Performs the conversion.

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

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

Auto Trait Implementations

impl<'a> Send for Env<'a>

impl<'a> Sync for Env<'a>