❔ Serilog
Let's say i have a following log:
Logger.Information("You have earn {amount}{currency}", 10, "$")
can i make a currency is only text formated and no label being created? i don't want useless labels be exported to for example seq
ping me if you know6 Replies
Just format it in place I guess
Of course, this would always allocate the string, whether the message would be printed or not
Ah nevermind
GitHub
Structured Data · serilog/serilog Wiki
Simple .NET logging with fully-structured events. Contribute to serilog/serilog development by creating an account on GitHub.
It's simpler
so i should make {@currency}
jsut use string interpolation then
theres no reason to use serilog if you dont want structured logs lol
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.