Function wasmbus_rpc::channel_log::init_logger[][src]

pub fn init_logger() -> Result<Receiver, String>
Expand description

Sets the system logger to log all messages (debug!, info!, etc.) through a crossbeam channel. The caller can pass the receiver to init_receiver() to log to a file, or implement another receiver to perform other processing (such as sending to syslog, or a remote logger). An error return means another logger was already initialized, and rx should be dropped.