Replies: 1 comment
-
Just saw #1906. Is there a way to convert |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
event!
macro dispatches the event immediately, not allowing to record anything on it before it gets sent off (or logged).Let's say I have a
serde_json::Value
object representing some web server request, and want to log all the request fields as JSON:This cannot be done with
event!(Level::INFO, ?request, "Received request on web server")
syntax since that would turn the request into a string (here: usingDebug
trait).I'm thinking of something like this:
See also #2198
Beta Was this translation helpful? Give feedback.
All reactions