Struct binaryninja::logger::Logger
source · pub struct Logger { /* private fields */ }
Implementations§
source§impl Logger
impl Logger
pub fn new(name: &str) -> Logger
pub fn new_with_session(name: &str, session_id: usize) -> Logger
pub fn with_level(self, level: LevelFilter) -> Logger
sourcepub fn init(self)
pub fn init(self)
Calling this will set the global logger to self
.
NOTE: There is no guarantee that logs will be sent to BinaryNinja as another log sink may have already been initialized beforehand.
pub fn name(&self) -> BnString
pub fn session_id(&self) -> usize
Trait Implementations§
impl Send for Logger
impl Sync for Logger
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more