pub fn set_writer(w: Box<dyn Write + Send>)
Sets the output target to a custom writer.
Note: the target is configured only once; call this before emitting any logs.