summaryrefslogtreecommitdiff
path: root/rust/examples/idb_import/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples/idb_import/src')
-rw-r--r--rust/examples/idb_import/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/examples/idb_import/src/lib.rs b/rust/examples/idb_import/src/lib.rs
index 0de688be..1faf188c 100644
--- a/rust/examples/idb_import/src/lib.rs
+++ b/rust/examples/idb_import/src/lib.rs
@@ -16,6 +16,7 @@ use idb_rs::til::Type as TILType;
use log::{error, trace, warn, LevelFilter};
use anyhow::Result;
+use binaryninja::logger::Logger;
struct IDBDebugInfoParser;
impl CustomDebugInfoParser for IDBDebugInfoParser {
@@ -337,7 +338,7 @@ fn parse_id0_section_info(
#[allow(non_snake_case)]
#[no_mangle]
pub extern "C" fn CorePluginInit() -> bool {
- logger::init(LevelFilter::Error);
+ Logger::new("IDB Import").with_level(LevelFilter::Error).init();
DebugInfoParser::register("IDB Parser", IDBDebugInfoParser);
DebugInfoParser::register("TIL Parser", TILDebugInfoParser);
true