Skip to content

Repository files navigation

caplog

A Rust library providing log capture facilities for testing.

This crate is primarily intended for use with the log crate, however additional logging facilities are welcome.

Usage

use log::warn;#[test]fntest_scramble_message(){let handle = caplog::get_handle();warn!("scrambled eggs");assert!(handle.any_msg_contains("scrambled eggs"));}

About

Capture log messages for testing.

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages