[][src]Function glsp::set_epr_writer

pub fn set_epr_writer(epr_writer: Box<dyn Write + 'static>)

Changes the output writer used by epr, eprn, epr! and eprn!.

That same writer is also used by GameLisp to print a stack trace when an error is not caught.

The default writer is Stderr. Note that calling glsp::set_epr_writer will not redirect the output of Rust macros like panic! or eprintln!: for that, you would need to use the undocumented feature set_panic.

//silences error-reporting, epr!(), eprn!(), epr and eprn
glsp::set_pr_writer(Box::new(std::io::sink()));