Module binaryninja::logger
source · Expand description
To use logging in your script, do something like:
use binaryninja::logger;
use log::{info, LevelFilter};
fn main() {
logger::init(LevelFilter::Warn).expect("Unable to initialize logger");
info!("The logger has been initialized!");
// Your code here...
}
or
use binaryninja::logger;
use log::{info, LevelFilter};
#[no_mangle]
pub extern "C" fn CorePluginInit() -> bool {
logger::init(LevelFilter::Warn).expect("Unable to initialize logger");
info!("The logger has been initialized!");
// Your code here...
true
}
Structs§
Enums§
- ! Console log levels
Traits§
Functions§
- Uses BinaryNinja’s logging functionality as the sink for Rust’s
log
crate.