Skip to main content

print_to

Function print_to 

Source
pub fn print_to(target: Target)
Available on crate feature print only.
Expand description

Set the target for printing messages

This is useful if stdout needs to emit structured messages for other tools. Then you can programmatically change everything to emit to stderr. Note this will only affect messages printed after the call.

By default, all print messages go to stdout.

See also cu::cli::animate_to

cu::cli::print_to(cu::cli::Target::Stderr);