summaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-11-11 17:05:44 -0500
committerMason Reed <mason@vector35.com>2024-11-11 17:05:44 -0500
commite856d391d377d0a723563925bb0a841ead5ae012 (patch)
tree197df92e0dfc44e1f1e243bf4b35cd08ef8c1cfd /view
parent911203528b5a5bfc7a98e86ad55b80f7a1385969 (diff)
Add actual logger api to rust
Diffstat (limited to 'view')
-rw-r--r--view/bintxt/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/bintxt/src/lib.rs b/view/bintxt/src/lib.rs
index fbf3682d..392fe4ce 100644
--- a/view/bintxt/src/lib.rs
+++ b/view/bintxt/src/lib.rs
@@ -8,11 +8,13 @@ use srec::*;
use titxt::*;
use std::ops::Range;
+use log::LevelFilter;
+use binaryninja::logger::Logger;
#[no_mangle]
#[allow(non_snake_case)]
pub extern "C" fn CorePluginInit() -> bool {
- binaryninja::logger::init(log::LevelFilter::Error);
+ Logger::new("BINTXT").with_level(LevelFilter::Info).init();
binaryninja::custombinaryview::register_view_type(c"ti-txt", c"TI-TXT", |core| {
TiTxtViewConstructor { core }