#log #logging #test

capture-logger

log implementation for testing

2 releases

0.1.1 Dec 12, 2020
0.1.0 Dec 12, 2020

#446 in Testing

Download history 238/week @ 2023-12-13 41/week @ 2023-12-20 9/week @ 2023-12-27 87/week @ 2024-01-03 158/week @ 2024-01-10 159/week @ 2024-01-17 269/week @ 2024-01-24 365/week @ 2024-01-31 147/week @ 2024-02-07 175/week @ 2024-02-14 70/week @ 2024-02-21 195/week @ 2024-02-28 174/week @ 2024-03-06 258/week @ 2024-03-13 77/week @ 2024-03-20 59/week @ 2024-03-27

620 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