Hello,
First, I have to say that I'm just discovering Serilog & Seq and that I'm pretty impressed!
Anyway, trying to use them in a MVC project, I have a few questions which I'm surprised that no one else seems to have addressed while they seem basic needs to me... But then maybe I missed something :-p
In the doc you say:
Each sink is provided with an output template that controls how the sink renders events. This template uses the same format as the message templates that go with log events themselves, and can be specified during configuration.
But to me it seems that the seq sink doesn't have such a property, in fact only console has it, no?
Now back to what I am trying to achieve, for example, I want to enrich my logs kind of globaly
Log.Logger = new LoggerConfiguration()
.Enrich.WithProperty("App", APP_NAME)
.CreateLogger();
everything works except I cannot have this mentionned in the message itself, if you see what I mean. I would like to do something like
Log.Information("{App}: {Action} {id}", "view", id);
But of course that won't work since {App} will take the first parameter....
something similar to output templates would do it (not 100% but still)
Nicolas