Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert bindings_ffi to use tracing rather than log #1233

Open
insipx opened this issue Nov 7, 2024 · 0 comments
Open

Convert bindings_ffi to use tracing rather than log #1233

insipx opened this issue Nov 7, 2024 · 0 comments

Comments

@insipx
Copy link
Contributor

insipx commented Nov 7, 2024

Using the tracing crate in bindings_ffi makes it consistent with the rest of the crate. Using tracing has many other benefits as well:

  • Easy toggling between human-readable and structured logging
  • extremely configurable formats
  • tracing preserves context of async tasks/spans, making it easier to follow their execution
  • ability to attach third party log viewers to converse for instance consider bevys strategy
@insipx insipx added this to libxmtp Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant