Function tracing_shared::setup_shared_logger_ref
source ยท #[no_mangle]
pub fn setup_shared_logger_ref(logger: &SharedLogger)
Expand description
helper function to install the SharedLogger public re-export to make it globally accessible Usage:
pub use tracing_shared::setup_shared_logger_ref;
use tracing_shared::SharedLogger;
let dylib = "library.so";
let dylib = unsafe { libloading::Library::new(dylib) }.expect("error loading dylib")
let setup_logger: extern "C" fn(&SharedLogger) =
unsafe { *dylib.get(b"setup_shared_logger_ref").unwrap() };