Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

README and sample updates to match recent .NET hosting models #370

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

Merged
nblumhardt merged 1 commit into serilog:dev from nblumhardt:readme-updates
Apr 5, 2024

Conversation

Copy link
Member

@nblumhardt nblumhardt commented Apr 5, 2024

Fixes #368

  • In all app models, UseSerilog is replaced with IServiceCollection.AddSerilog() - this works with WebApplicationBuilder and IHostApplicationBuilder (generic host).
  • Removed writeToProviders from the README as there are enough breadcrumbs out there for people to find if they really need this, it's only required in very rare and undesirable scenarios.
  • Blanket suppression of Microsoft.AspNetCore sources is no longer recommended; switched this for a handful of more targeted suppressions

Copy link
Member Author

Not too much to review here, I'll send this through as the current README's looking pretty outdated 😅

@nblumhardt nblumhardt merged commit cd8662f into serilog:dev Apr 5, 2024
Copy link

jcasale commented Apr 5, 2024

I think the comment in the sample is out of date, it still references UseSerilog().

Copy link
Member Author

Fixed, thanks @jcasale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Update README.md example to show builder.Services.AddSerilog() in a minimal API project

AltStyle によって変換されたページ (->オリジナル) /