Expand description
A basic logger to use with the log
crate.
See crate ::env_logger
.
Modules§
- fmt
- Formatting for log records.
Structs§
- Builder
Builder
acts as builder for initializing aLogger
.- Env
- Set of environment variables to configure from.
- Logger
- The env logger.
Enums§
- Target
- Log target, either
stdout
,stderr
or a custom pipe. - Timestamp
Precision - Formatting precision of timestamps.
- Write
Style - Whether or not to print styles to the target.
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_
env Deprecated - 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.