Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add non array based WriteTo support #247

Open
JonruAlveus opened this issue Jan 8, 2021 · 0 comments
Open

Add non array based WriteTo support #247

JonruAlveus opened this issue Jan 8, 2021 · 0 comments

Comments

@JonruAlveus
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant