-
Notifications
You must be signed in to change notification settings - Fork 205
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
2.1.0 Release #12
2.1.0 Release #12
Conversation
nblumhardt
commented
Oct 21, 2017
•
edited
Loading
edited
- Add an overload to UseSerilog() for inline initialization during program startup #1 - option to configure inline so that default configuration/hosting context information is available
…ng the construction of IWebHost.
Add an overload to UseSerilog() for inline initialization during program startup
This looks like a step in the right direction. I would like to set up logging in
and in
If the I would write my own, but right now I can't create an extension like that because |
Hi @toddlucas - we're keen to keep the top-level |
Thanks @nblumhardt. If you're amenable, I might create a PR to show you an example. The |
Thanks for the follow-up, Todd. Just to zoom out for a second, what't the advantage to be gained by configuring Serilog in Startup.cs? Thanks! |
Actually, I've taken another look and the Add/Use way appears to be more of a 1.x convention--at least for logging. 2.x has moved default configuration and logging setup to Program.cs. It's often hidden in templates that use |
Okay, thanks for the info 👍 |