diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-11 17:05:44 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-11 17:05:44 -0500 |
| commit | e856d391d377d0a723563925bb0a841ead5ae012 (patch) | |
| tree | 197df92e0dfc44e1f1e243bf4b35cd08ef8c1cfd /rust/examples/idb_import/src | |
| parent | 911203528b5a5bfc7a98e86ad55b80f7a1385969 (diff) | |
Add actual logger api to rust
Diffstat (limited to 'rust/examples/idb_import/src')
| -rw-r--r-- | rust/examples/idb_import/src/lib.rs | 3 |
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 |
