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/workflow/src | |
| parent | 911203528b5a5bfc7a98e86ad55b80f7a1385969 (diff) | |
Add actual logger api to rust
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"); |
