Skip to content

Commit 760cf19

Browse files
committed
Quick README update to note the versioning policy
1 parent b02f94f commit 760cf19

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Serilog logging for _Microsoft.Extensions.Hosting_. This package routes framewor
99
**First**, install the _Serilog.Extensions.Hosting_ [NuGet package](https://www.nuget.org/packages/Serilog.Extensions.Hosting) into your app. You will need a way to view the log messages - _Serilog.Sinks.Console_ writes these to the console; there are [many more sinks available](https://www.nuget.org/packages?q=Tags%3A%22serilog%22) on NuGet.
1010

1111
```powershell
12-
Install-Package Serilog.Extensions.Hosting -DependencyVersion Highest
13-
Install-Package Serilog.Sinks.Console
12+
dotnet add package Serilog.Extensions.Hosting
13+
dotnet add package Serilog.Sinks.Console
1414
```
1515

1616
**Next**, in your application's _Program.cs_ file, configure Serilog first. A `try`/`catch` block will ensure any configuration issues are appropriately logged:
@@ -88,3 +88,7 @@ You can alternatively configure Serilog using a delegate as shown below:
8888
This has the advantage of making the `hostingContext`'s `Configuration` object available for configuration of the logger, but at the expense of ignoring `Exception`s raised earlier in program startup.
8989

9090
If this method is used, `Log.Logger` is assigned implicitly, and closed when the app is shut down.
91+
92+
### Versioning
93+
94+
This package tracks the versioning and target framework support of its [_Microsoft.Extensions.Hosting_](https://nuget.org/packages/Microsoft.Extensions.Hosting) dependency.

0 commit comments

Comments
 (0)