Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: enable TestWriter to write to stderr
It can be useful to have a TestWriter that does not log to stdout but stderr instead. For example, that allows for potentially easier filtering of tracing output (because the remaining output of, say, cargo test goes to stdout) or to mirror behavior of env_logger, which by default logs to stderr. Introduce the TestWriter::with_stderr() constructor to enable such usage. The default is left unchanged.
- Loading branch information