Registry / logging / pretty-env-logger

pretty-env-logger

JSON →
library0.5.0rscratesunverified

A visually pretty logging implementation based on env_logger.

# Cargo.toml [dependencies] pretty_env_logger = "0.5.0"
INSTALL
IMPORT
SIG · PRETTY-ENV-LOGGER
P
pretty-env-logger
loggingrustv0.5.0
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 pretty_env_logger::init;

Initializes the pretty logger and logs an info message.

use log::info; fn main() { pretty_env_logger::init(); info!("Application started"); }
Debug
Known issues
gotchaRequires the `log` crate to be a dependency.
fix
Add `log` to Cargo.toml.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
24
Resources
pretty-env-logger — cargo add pretty-env-logger · libregistry