diff options
Diffstat (limited to 'rust/examples/workflow/src')
| -rw-r--r-- | rust/examples/workflow/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/examples/workflow/src/lib.rs b/rust/examples/workflow/src/lib.rs index 47a8d2c8..6f415941 100644 --- a/rust/examples/workflow/src/lib.rs +++ b/rust/examples/workflow/src/lib.rs @@ -3,6 +3,7 @@ use binaryninja::llil::{ }; use binaryninja::workflow::{Activity, AnalysisContext, Workflow}; use log::LevelFilter; +use binaryninja::logger::Logger; const RUST_ACTIVITY_NAME: &'static str = "analysis.plugins.rustexample"; const RUST_ACTIVITY_CONFIG: &'static str = r#"{ @@ -55,7 +56,7 @@ fn example_activity(analysis_context: &AnalysisContext) { #[no_mangle] #[allow(non_snake_case)] pub extern "C" fn CorePluginInit() -> bool { - binaryninja::logger::init(LevelFilter::Info); + Logger::new("Workflow Example").with_level(LevelFilter::Info).init(); log::info!("Initialized the plugin"); |
