-
Notifications
You must be signed in to change notification settings - Fork 23
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 support for 'Destructure' configuration options in app settings #20
Comments
Destructure
configuration options in app settings
Thanks for the suggestion 👍 |
In order to have aconsistent implementation, it should be similar to serilog/serilog-settings-configuration#110 |
How should generic parameters be specified in order to call I would say staying close to C# would be the best approach (using angle brackets), but in a XML-ish config file, that probably means they would have to be escaped like so : <add key="serilog:using:DestructuringPolicies" value="MyApp.CustomDestructuringPolicies" />
<add key="serilog:destructure:With<MyCustomDestructuringPolicy>" /> Another option is to not support generic parameters at all in the settings providers, but to add a non-generic version of the method in Serilog and having both : public LoggerConfiguration With<TDestructuringPolicy>() and public LoggerConfiguration With(Type destructuringPolicyType) The first one can be used in C# code, the second one can be used in configuration (I believe there is already support for parameters of type |
Looks like this has moved forwards 👍 |
I would like to be able to configure Serilog's
Destructure
configuration options like e.g.:in the app settings XML file like e.g.:
It seems to me this is not possible today.
The text was updated successfully, but these errors were encountered: