-
Notifications
You must be signed in to change notification settings - Fork 281
[Rust API] Improve logger documentation #6863
Copy link
Copy link
Labels
Component: Rust APIIssue needs changes to the Rust APIIssue needs changes to the Rust APIEffort: TrivialIssues require < 1 day of workIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundIssue is a papercut or has a good, supported workaround
Milestone
Metadata
Metadata
Assignees
Labels
Component: Rust APIIssue needs changes to the Rust APIIssue needs changes to the Rust APIEffort: TrivialIssues require < 1 day of workIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundIssue is a papercut or has a good, supported workaround
Version and Platform (required):
Bug Description:
When using the Rust API to develop a plugin, I attempted to enable logging in headless mode using:
However, no log output is produced, even when explicitly setting the log level. This makes it difficult to debug plugins in headless mode.
Most existing Rust plugin examples use
print*macros instead of thelogcrate, which suggests thatlogger.init()may not be supported in this context — or perhaps I’m missing a required step.Steps To Reproduce:
binaryninja::logger::Logger::new("Test").init()and attempt to log a message usinglog::info!,warn!, etc.cargo run.Expected Behavior:
I expected that
logger.init()would configure logging correctly and output log messages to the console when running in headless mode.Screenshots/Video Recording:
N/A
Binary:
Not applicable — this issue concerns plugin development using the Rust API.
Additional Information:
Possibly related to issue #5101 and issue #1990.
Is this the intended behavior? Should I be using a third-party logging solution instead of the built-in Binary Ninja logger when working in headless mode?