If I want to write to two Seq servers I can do this in code by:
.WriteTo.Seq("http://localhost:5341")
.WriteTo.Seq("http://otherhost:5341")
.CreateLogger();
I'm not sure how I can do this in appSettings
If I configure like so:
<add key="serilog:using:Seq" value="Serilog.Sinks.Seq" />
<add key="serilog:write-to:Seq.serverUrl" value="http://localhost:5341" />
<add key="serilog:write-to:Seq.serverUrl" value="http://otherhost:5341"/>
It ends up only sending logs to otherhost as the key is the same so it overwrites the first one.
Is there away to make these settings unique so that it ends up sending logs to both servers?
If I want to write to two Seq servers I can do this in code by:
I'm not sure how I can do this in appSettings
If I configure like so:
It ends up only sending logs to otherhost as the key is the same so it overwrites the first one.
Is there away to make these settings unique so that it ends up sending logs to both servers?