Drakulix / simplelog.rs

Simple Logging Facility for Rust
https://docs.rs/simplelog/
Apache License 2.0
439 stars 73 forks source link

Log output is not captured by tests #29

Closed AlexW-GH closed 5 years ago

AlexW-GH commented 6 years ago

The simplelog output is not captured by tests, due to capturing only happening on LOCAL_STDOUT. The only way I'm aware of for writing to LOCAL_STDOUT, is using print!() and println!().

I suggest adding a dedicated logger for tests, to be able to use the stdout capturing feature. https://github.com/AlexW-GH/simplelog.rs

Drakulix commented 5 years ago

Added your TestLogger in the latest release.