Replies: 1 comment 2 replies
-
Hi @espeng2! It looks nice! I'm guessing that this would be an alternative to the current state where you will have to implement your own event formatter, or do you see as something completely new, something that currently isn't supported by the sink? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was wondering if it would be possible to specify a formatter in the configuration of the http sink.
something like this, which is possible with the console and file sink:
"formatter": {
"type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
"template": "{ {timestamp: @t, level: @l, messageTemplate: @mt, message: @m, exception: @x, properties: if IsDefined(@p[?]) then @p else undefined()} }\n"
}
best regards,
Espen
Beta Was this translation helpful? Give feedback.
All reactions