-
Notifications
You must be signed in to change notification settings - Fork 26
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
Assert passed fields/variables in the logs #5
Comments
Yes, you're right, I think this is not currently supported. Right now the subscriber simply writes bytes to a So what we could do is encoding the logs into a serialized format, and then the assertion functions would decode the lines again into a That was just a quick brainstorming. A pull request - or even just a comment with a concrete proposal - would be welcome! |
I'm searching online and it seems like you can get more data with layers from tracing, like here https://burgers.io/custom-logging-in-rust-using-tracing - although it would require a bit of rewrite, at least for the |
I'm looking into asserting the recorded fields from tracing. It doesn't seem like this testing lib supports it (please correct me if I'm wrong).
Also, please let me know if you would be open to a PR adding this functionality, if you think it would be useful for others - I may dive into this lib and add that feature.
The text was updated successfully, but these errors were encountered: