From e856d391d377d0a723563925bb0a841ead5ae012 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 11 Nov 2024 17:05:44 -0500 Subject: Add actual logger api to rust --- rust/examples/idb_import/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rust/examples/idb_import/src') 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 -- cgit v1.3.1