Registry / logging / flexi-logger

flexi-logger

JSON →
library0.31.9rscratesunverified

An easy-to-configure and flexible logger that writes logs to stderr or stdout and/or to files. It allows custom logline formats, and it allows changing the log specification at runtime. It also allows defining additional log streams, e.g. for alert or security messages.

# Cargo.toml [dependencies] flexi_logger = "0.31.9"
INSTALL
IMPORT
SIG · FLEXI-LOGGER
F
flexi-logger
loggingrustv0.31.9
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.

Logger
✓ use flexi_logger::Logger;

Initializes the logger with a default log level and starts logging.

use flexi_logger::Logger; Logger::try_with_str("info").unwrap() .start() .unwrap(); log::info!("Application started");
Debug
Known issues
gotchaRequires the `log` crate for logging macros.
fix
Add `log` as a dependency.
affects: >=0.20.0
Upgrade
Version history
0.31.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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