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 configuration example to readme #323

Closed
MNF opened this issue Apr 25, 2021 · 1 comment · Fixed by #375
Closed

Add configuration example to readme #323

MNF opened this issue Apr 25, 2021 · 1 comment · Fixed by #375
Labels
enhancement Issues describing an enhancement or pull requests adding an enhancement.

Comments

@MNF
Copy link

MNF commented Apr 25, 2021

It will be good to add to readme an example of configuration as an alternative to hardcoded new LoggerConfiguration() .Enrich.WithExceptionDetails()- something like

{
"Serilog": {
"MinimumLevel": "Debug",
"Using": [ "Serilog.Exceptions" ],
"Enrich": [ "WithExceptionDetails"],
"WriteTo": [
{ "Name": "Console" }
]
}
}

I haven’t tried it yet.
Will it work ?

@MNF MNF added the enhancement Issues describing an enhancement or pull requests adding an enhancement. label Apr 25, 2021
@RehanSaeed
Copy link
Owner

It should work. Will accept a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues describing an enhancement or pull requests adding an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants