Message template support (@mt in Seq) #3185
-
When logging something like BackgroundSeq is a logging search/analysis tool. It supports an For example, a log event may look like:
So instead of containing the full interpreted message (which would be Is there any way to support this using the tracing crate, via layers or event formatting or something like this? My initial guess would be "no" since, as far as I can tell, there is no way to retrieve the message template when using the log macros (like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's not possible in this way as the message is first created as if you called |
Beta Was this translation helpful? Give feedback.
It's not possible in this way as the message is first created as if you called
format!
. However, you could do something likeinfo!(username = "Alice", "Hello, {{username}}");
to have the message not interpolated and then you can process it in another system.