#log #logging #test

capture-logger

log implementation for testing

2 releases

0.1.1 Dec 12, 2020
0.1.0 Dec 12, 2020

#465 in Testing

Download history 133/week @ 2024-01-13 239/week @ 2024-01-20 342/week @ 2024-01-27 181/week @ 2024-02-03 246/week @ 2024-02-10 76/week @ 2024-02-17 52/week @ 2024-02-24 277/week @ 2024-03-02 269/week @ 2024-03-09 107/week @ 2024-03-16 61/week @ 2024-03-23 115/week @ 2024-03-30 85/week @ 2024-04-06 68/week @ 2024-04-13 147/week @ 2024-04-20 101/week @ 2024-04-27

420 downloads per month
Used in vacuna

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


lib.rs:

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.!

Dependencies

~87KB