Registry / testing / logtest

logtest

JSON →
library2.0.0rscratesunverified

Test and assert log statements in your Rust applications.

# Cargo.toml [dependencies] logtest = "2.0.0"
INSTALL
IMPORT
SIG · LOGTEST
L
logtest
testingrustv2.0.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.

Logger
use logtest::Logger;

Captures and asserts log output.

use logtest::Logger; use log::info; fn main() { let mut logger = Logger::start(); info!("hello"); assert_eq!(logger.pop().unwrap().args(), "hello"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Resources
logtest — cargo add logtest · libregistry