-
Notifications
You must be signed in to change notification settings - Fork 141
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
custom logger #1200
Comments
tracing is kinda of the standard for logging, every project that will use the library will very likely expect to have log reported by tracing, is also audited by google. https://github.com/google/rust-crate-audits/blob/main/manual-sources/google3-audits.toml#L1383 I don't think that we should remove it, if there is a way to do that without disrupting the user experience could make sense. If not no. |
I should probably clarify that I only created this issue to take note of some discussion point we had in a call last year even though we try to use as little external dependencies as possible (to avoid introducing vulnerabilities etc), therefore I don't think this is high priority |
I have implemented a custom logger, which can be found here: https://github.com/Shourya742/logger. I'm leaving this comment in case we might need it in the future. |
@Georges760 please write an explanation of how embedded systems manage logging |
In embedded systems, logging is usually done using Most of the libraries that want to support embedded system have a feature
As As an example, in |
background
protocols
crates should use as little external dependencies as possible.problem
currently, the following crates use
tracing
as an external dependency:sv1_api
binary_sv2
codec_sv2
roles_logic_sv2
solution
write a custom logger to replace
tracing
reference from
rust-lightning
: https://github.com/lightningdevkit/rust-lightning/blob/f94bf9861289ce6a75fd7d5856d736a2f966a619/lightning/src/util/logger.rs#L165The text was updated successfully, but these errors were encountered: