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/dwarf/dwarf_export/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/examples/dwarf/dwarf_export/src') diff --git a/rust/examples/dwarf/dwarf_export/src/lib.rs b/rust/examples/dwarf/dwarf_export/src/lib.rs index 05592f5f..18cc1e21 100644 --- a/rust/examples/dwarf/dwarf_export/src/lib.rs +++ b/rust/examples/dwarf/dwarf_export/src/lib.rs @@ -15,13 +15,13 @@ use binaryninja::{ command::{register, Command}, interaction, interaction::{FormResponses, FormResponses::Index}, - logger::init, rc::Ref, string::BnString, symbol::SymbolType, types::{Conf, MemberAccess, StructureType, Type, TypeClass}, }; use log::{error, info, LevelFilter}; +use binaryninja::logger::Logger; fn export_type( name: String, @@ -781,7 +781,7 @@ impl Command for MyCommand { #[no_mangle] pub extern "C" fn CorePluginInit() -> bool { - init(LevelFilter::Debug); + Logger::new("DWARF Export").with_level(LevelFilter::Debug).init(); register( "Export as DWARF", -- cgit v1.3.1