Skip to content

Conversation

nblumhardt
Copy link
Member

This PR adds Console, Debug, and File sinks to the package dependencies, along with Serilog.Formatting.Compact (JSON) and Serilog.Settings.Configuration. The README is updated accordingly.

The goal is to make the onboarding process smoother. There's still work to do, including sample updates to match the ASP.NET Core 3.0 hosting startup.

Partial #95

Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(Configuration)
.Enrich.FromLogContext()
.WriteTo.Debug()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, there are lots of questions when folks are getting started that this may help.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nblumhardt
Copy link
Member Author

The reason I left this in draft is that it will update the README in a way that's incompatible with the current released package. We could just jump ahead, however, and release our 3.0 with the framework dependencies left at 2.2 (it doesn't look like we'll bump dependency versions this time around). Thoughts?

@SimonCropp
Copy link
Contributor

We could just jump ahead

:shipit:

@nblumhardt
Copy link
Member Author

Will just need: serilog/serilog-extensions-hosting#11

@nblumhardt nblumhardt marked this pull request as ready for review August 27, 2019 21:43
@nblumhardt
Copy link
Member Author

Planning to merge and release this via 3.0.0, and only merge the example updates in #111 once .NET Core 3 has shipped.

@nblumhardt nblumhardt merged commit 618600a into dev Aug 27, 2019
This was referenced Aug 27, 2019
@nblumhardt nblumhardt deleted the batteries-included-2 branch September 2, 2019 23:07
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

Successfully merging this pull request may close these issues.

3 participants