Module logger

Module logger 

Source

Structs§

Builder
Builder acts as builder for initializing a Logger.
Env
Set of environment variables to configure from.
Logger
The env logger.
Var 🔒

Constants§

DEFAULT_FILTER_ENV
The default name for the environment variable to read filters from.
DEFAULT_WRITE_STYLE_ENV
The default name for the environment variable to read style preferences from.

Functions§

builder
Create a new builder with the default environment variables.
from_envDeprecated
Create a builder from the given environment variables.
init
Initializes the global logger with an env logger.
init_from_env
Initializes the global logger with an env logger from the given environment variables.
try_init
Attempts to initialize the global logger with an env logger.
try_init_from_env
Attempts to initialize the global logger with an env logger from the given environment variables.