@@ -11,7 +11,7 @@ This package routes ASP.NET log messages through Serilog, so you can get informa
1111
1212``` powershell
1313Install-Package Serilog.Extensions.Logging -DependencyVersion Highest
14- Install-Package Serilog.Sinks.Literate
14+ Install-Package Serilog.Sinks.Console
1515```
1616
1717** Next** , in your application's ` Startup ` method, configure Serilog first:
@@ -25,7 +25,7 @@ public class Startup
2525 {
2626 Log .Logger = new LoggerConfiguration ()
2727 .Enrich .FromLogContext ()
28- .WriteTo .LiterateConsole ()
28+ .WriteTo .Console ()
2929 .CreateLogger ();
3030
3131 // Other startup code
@@ -47,16 +47,16 @@ call `AddSerilog()` on the provided `loggerFactory`.
4747That 's it! With the level bumped up a little you should see log output like:
4848
4949```
50- 2015 - 05 - 15 22 : 14 : 44 . 646 + 10 : 00 [ DBG ] RouteCollection .RouteAsync
50+ [ 22 : 14 : 44 . 646 DBG ] RouteCollection .RouteAsync
5151 Routes :
5252 Microsoft .AspNet .Mvc .Routing .AttributeRoute
5353 {controller = Home }/ {action = Index }/ {id ? }
5454 Handled ? True
55- 2015 - 05 - 15 22 : 14 : 44 . 647 + 10 : 00 [ DBG ] RouterMiddleware .Invoke
55+ [ 22 : 14 : 44 . 647 DBG ] RouterMiddleware .Invoke
5656 Handled ? True
57- 2015 - 05 - 15 22 : 14 : 45 . 706 + 10 : 00 [ DBG ] / lib / jquery / jquery .js not modified
58- 2015 - 05 - 15 22 : 14 : 45 . 706 + 10 : 00 [ DBG ] / css / site .css not modified
59- 2015 - 05 - 15 22 : 14 : 45 . 741 + 10 : 00 [ DBG ] Handled . Status code : 304 File : / css / site .css
57+ [ 22 : 14 : 45 . 706 DBG ] / lib / jquery / jquery .js not modified
58+ [ 22 : 14 : 45 . 706 DBG ] / css / site .css not modified
59+ [ 22 : 14 : 45 . 741 DBG ] Handled . Status code : 304 File : / css / site .css
6060```
6161
6262### Credits
0 commit comments