-
Notifications
You must be signed in to change notification settings - Fork 80
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
Expose logger
interface
#309
Comments
This is probably slipping to 0.5, but we should still modify our logger to make it compatible with |
Hi @tnull Can you provide a bit more context about targeting a database backend? My initial thought is that the custom logger can save generated logs to any database server that can handle Additionally, the strategy I have thought to address this issue is to:
enum CustomLogger {
FilesystemLogger,
DatabaseLogger
} Please let me know if you think this approach is sound or needs refinement, and if I can start working on an implementation. Happy to get any feedback/recommendations from you. |
Afaiu, Also we should explore log crate as part of this. |
Thanks for the responding @G8XSU |
Excuse the delayed response here. Great to hear you're interested in picking this up! I think the first steps would be:
I hope all of these make sense to you, let me know (here or on Discord) if you have any more questions. |
Thanks for providing additional context @tnull. I understand the steps you have outlined and will contact you if I have any questions. |
Recently some LDK devs had another discussion regarding the customized logging interface in LDK Node, as more and more users request this feature. Given that it might take some time to get the optional dependency added to rust-lightning and ship a release, we concluded that it might make sense to start with a custom interface that optionally adapts log in LDK Node first, and then we can see what parts of it can be upstreamed. So essentially we would start off with a refactor to the one attempted in #393, but with three writer variants: a) a In contrast to the approach taken in #393 this however needs to be configurable via Let me know if that makes sense to you and if you have any further questions! Also happy to pick some of this up myself if you prefer. (cc @G8XSU) |
Thanks for the update. Switching here now. |
We should allow users to implement custom loggers, e.g., to implement their own rotation logic or to target a database backend.
The text was updated successfully, but these errors were encountered: