datalust / serilog-sinks-seq

A Serilog sink that writes events to the Seq structured log server
https://datalust.co/seq
Apache License 2.0
239 stars 50 forks source link

How to turn Seq off through Appsettings? #87

Closed stephenpatten closed 7 years ago

stephenpatten commented 7 years ago

Hey Nic,

Wondering if this scenario is supported, and if so how, just remove the using statement from settings?

<add key="serilog:minimum-level" value="Verbose" />
<add key="serilog:using:Seq" value="Serilog.Sinks.Seq" />
<add key="serilog:write-to:Seq.serverUrl" value="removed/" />
<add key="serilog:write-to:Seq.apiKey" value="removed" />

Cheers, Stephen

nblumhardt commented 7 years ago

Hi Stephen,

Removing the last two lines - write-to - will do the job.

HTH! Nick