Skip to content

wirego_remote(rust): Introduce logger#46

Merged
NothNoth merged 3 commits into
quarkslab:mainfrom
whiskeyo:better-rust-logging
Jun 2, 2025
Merged

wirego_remote(rust): Introduce logger#46
NothNoth merged 3 commits into
quarkslab:mainfrom
whiskeyo:better-rust-logging

Conversation

@whiskeyo
Copy link
Copy Markdown
Contributor

As we talked recently, better logging was one of the points that I was meant to work on :)

Since wirego is a crate that is later used in binaries (aka implemented plugins), it does not instantiate a logger by itself, but uses log crate and lets the user use any logging frontend (you may see changes in both the wirego crate and the example). That is the behavior that is recommended:

If we wanted to initialize the logger in the crate, we could potentially break the plugin if the user wanted to use some different logging frontend, thus that's probably the best solution - safe and allowing users to do anything they want (including having no logs at all).

Copy link
Copy Markdown
Collaborator

@NothNoth NothNoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thanks a lot

@NothNoth NothNoth merged commit 7140a3c into quarkslab:main Jun 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants