Registry / testing / testing-logger

testing-logger

JSON →
library0.1.1rscratesunverified

Supports writing tests to verify log crate calls by capturing log output.

# Cargo.toml [dependencies] testing_logger = "0.1.1"
INSTALL
IMPORT
SIG · TESTING-LOGGER
T
testing-logger
testingrustv0.1.1
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.

setup
use testing_logger::setup;

Sets up the testing logger, logs a message, and asserts it was captured.

use testing_logger::setup; fn main() { setup(); log::info!("Test message"); let captured = testing_logger::captured_logs(); assert!(captured.contains("Test message")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
testing-logger — cargo add testing-logger · libregistry