2 releases

0.1.1 Dec 12, 2020
0.1.0 Dec 12, 2020

#609 in Testing

Download history 59/week @ 2024-11-30 44/week @ 2024-12-07 66/week @ 2024-12-14 1/week @ 2024-12-21 13/week @ 2024-12-28 297/week @ 2025-01-04 202/week @ 2025-01-11 159/week @ 2025-01-18 159/week @ 2025-01-25 239/week @ 2025-02-01 310/week @ 2025-02-08 612/week @ 2025-02-15 355/week @ 2025-02-22 500/week @ 2025-03-01 251/week @ 2025-03-08 248/week @ 2025-03-15

1,466 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


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

~86KB