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

feat!: use the standard rustlang log for all logging purposes #42

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

aminya
Copy link
Collaborator

@aminya aminya commented Nov 27, 2023

This replaces the custom logging implementation with the standard rust-lang/log library that is implemented for many backends.

This has many benefits. There are a huge number of loggers that already implement this standard logging interface. There is no need to reinvent the wheel for logging. It also simplifies the code in this library as we will not need to maintain the custom logging facade.

Another benefit is that logging becomes optional automatically, and the user is not forced to implement/initialize logging.

This logging interface is also more efficient as it uses compile-time macros for logging. So, it will not create strings when not needed.

https://github.com/rust-lang/log

BREAKING this replaces the custom logging implementation with the standard rust-lang/log library that is implemented for many backends

https://github.com/rust-lang/log
Signed-off-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
Signed-off-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
Signed-off-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
@genedna genedna enabled auto-merge November 27, 2023 02:53
@genedna genedna added this pull request to the merge queue Nov 27, 2023
Merged via the queue into dagrs-dev:main with commit 774e6c5 Nov 27, 2023
4 checks passed
@aminya aminya deleted the logger branch November 28, 2023 06:06
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