#logging #debug-log

capture-logger

log implementation for testing

2 releases

0.1.1 Dec 12, 2020
0.1.0 Dec 12, 2020

#772 in Testing

Download history 42/week @ 2024-12-08 66/week @ 2024-12-15 1/week @ 2024-12-22 14/week @ 2024-12-29 299/week @ 2025-01-05 199/week @ 2025-01-12 160/week @ 2025-01-19 159/week @ 2025-01-26 241/week @ 2025-02-02 310/week @ 2025-02-09 615/week @ 2025-02-16 352/week @ 2025-02-23 500/week @ 2025-03-02 251/week @ 2025-03-09 259/week @ 2025-03-16 226/week @ 2025-03-23

1,239 downloads per month
Used in 2 crates

MIT/Apache

8KB
76 lines

capture-logger

log implementation for testing.

Dependencies

[dev-dependencies]
capture-logger = "0.1"

Example

use capture_logger::{begin_capture, pop_captured};

begin_capture();
log::debug!("LOG");
assert_eq!(pop_captured().unwrap().message(), "LOG");

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.!

License: MIT OR Apache-2.0

Dependencies

~90KB