pub fn init_logger() {
    log::set_logger(&LOGGER).unwrap();
    log::set_max_level(LevelFilter::Trace);

    // configure the panic hook, otherwise any panics
    // when running in Wasm will be lost
    panic::set_hook(Box::new(hook));
}
/// Called from the register contract macro.
///
/// Initalize the settings of the logger etc.
Called from the register contract macro.
Initalize the settings of the logger etc.
Called from the register contract macro . Initalize the settings of the logger etc .
pub fn init_logger() {
    log::set_logger(&LOGGER).unwrap();
    log::set_max_level(LevelFilter::Trace);
    // configure the panic hook, otherwise any panics
    // when running in Wasm will be lost
    panic::set_hook(Box::new(hook));
}
pub fn init_logger ( ) { log :: set_logger ( & LOGGER ) . unwrap ( ) ; log :: set_max_level ( LevelFilter :: Trace ) ; // configure the panic hook, otherwise any panics // when running in Wasm will be lost panic :: set_hook ( Box :: new ( hook ) ) ; }
Called from the register contract macro.
Called from the register contract macro .