Module binaryninja::logger

source ·
Expand description

To use logging in your script, do something like:

use binaryninja::logger::Logger;
use log::{info, LevelFilter};

fn main() {
    Logger::default().init();
    info!("The logger has been initialized!");
    // Your code here...
}

or

 use binaryninja::logger::Logger;
 use log::{info, LevelFilter};

 #[no_mangle]
 pub extern "C" fn CorePluginInit() -> bool {
     Logger::new("My Plugin").with_level(LevelFilter::Warn).init();
     info!("The logger has been initialized!");
     // Your code here...
     true
 }

Structs§

Enums§

  • ! Console log levels

Traits§

Functions§