Registry / logging / env-logger

env-logger

JSON →
library0.11.10rscratesunverified

A logging implementation for the log crate configured via an environment variable.

# Cargo.toml [dependencies] env_logger = "0.11.10"
INSTALL
IMPORT
SIG · ENV-LOGGER
E
env-logger
loggingrustv0.11.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

init
use env_logger::init;

Initialize the logger from the RUST_LOG environment variable.

use log::info; fn main() { env_logger::init(); info!("Application started"); }
Debug
Known issues
gotchaenv_logger must be initialized early; calling init() more than once will panic.
fix
Call env_logger::init() only once, typically at the start of main.
affects: >=0.4.0
Upgrade
Version history
0.11.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
34
OpenAI (training)
1
Resources
env-logger — cargo add env-logger · libregistry