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

infolog is private #52

Open
HyperCodec opened this issue Oct 27, 2024 · 3 comments
Open

infolog is private #52

HyperCodec opened this issue Oct 27, 2024 · 3 comments

Comments

@HyperCodec
Copy link

The Options struct log field requires usage of the infolog Logger, but I couldn't find any way to construct it.

@HyperCodec
Copy link
Author

i found a way to solve my problem, but this is still probably an issue to be fixed.

@dermesser
Copy link
Owner

That logging facility is mostly used for testing, what's the use case you want to customize it for?

@HyperCodec
Copy link
Author

That logging facility is mostly used for testing, what's the use case you want to customize it for?

Well in most cases crates use the log crate with certain levels that aren't typically enabled by default, it's just nice to be able to enable certain logs for debugging purposes.

For my case in particular, there were some indexing issues related to how rust handles a null byte in strings (all I had to do was never encode the key as a string and it worked). I was digging through the source while solving it and thought being able to see the logs might help with that problem.

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

No branches or pull requests

2 participants