serilog-settings-configuration icon indicating copy to clipboard operation
serilog-settings-configuration copied to clipboard

Add non array based WriteTo support

Open JonruAlveus opened this issue 4 years ago • 0 comments

Conversation started here but new issue to discuss a solution.

Is your feature request related to a problem Currently WriteTo uses an array syntax but this makes it very hard to override the configuration using other sources (such as EnvironmentVariables).

Describe the solution you’d like A way to specify the WriteTo section without a top level array, as suggested by @nblumhardt: WriteTo": { "File": { "path": "log1.txt" }, "RollingFile": [ { "pathFormat": "log2.txt" }, { "pathFormat": "log3.txt" } ] }

Additional issues How to handle sinks which have no parameters. : {}? : null?

JonruAlveus avatar Jan 08 '21 10:01 JonruAlveus