about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-07 09:41:35 -0800
committerbors <bors@rust-lang.org>2014-01-07 09:41:35 -0800
commit7dbd12a4fa89c04dff5031691502a0e0a9b0960e (patch)
treed93f0a2206857e7922eeb1636b0858c262297c50 /src/rustllvm/RustWrapper.cpp
parent3912a8779e7140f973da15956d54697d3912e0a2 (diff)
parentac2a24ecc9df66279a7b6df478593b34e1d2449f (diff)
downloadrust-7dbd12a4fa89c04dff5031691502a0e0a9b0960e.tar.gz
rust-7dbd12a4fa89c04dff5031691502a0e0a9b0960e.zip
auto merge of #11353 : alexcrichton/rust/improve-logging, r=brson
This will allow capturing of common things like logging messages, stdout prints
(using stdio println), and failure messages (printed to stderr).  Any new prints
added to libstd should be funneled through these task handles to allow capture
as well.

Additionally, this commit redirects logging back through a `Logger` trait so the
log level can be usefully consumed by an arbitrary logger.

This commit also introduces methods to set the task-local stdout handles:

* std::io::stdio::set_stdout
* std::io::stdio::set_stderr
* std::io::logging::set_logger

These methods all return the previous logger just in case it needs to be used
for inspection.

I plan on using this infrastructure for extra::test soon, but we don't quite
have the primitives that I'd like to use for it, so it doesn't migrate
extra::test at this time.

Closes #6369
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions