ASP.NET Core Logging

12
Shawn Wildermuth One of the Minds, Wilder Minds LLC Microsoft MVP @shawnwildermuth http://wilderminds.com Instrumenting Your Apps Just Got Easier ASP.NET Core Logging

Transcript of ASP.NET Core Logging

Page 1: ASP.NET Core Logging

Shawn WildermuthOne of the Minds, Wilder Minds LLCMicrosoft MVP@shawnwildermuthhttp://wilderminds.com

Instrumenting Your Apps Just Got EasierASP.NET Core Logging

Page 2: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

Boston Code Camp 26 - Thanks to our Sponsors! Platinum

Gold

Silver

Bronze

In-Kind Donations

Page 3: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

Who Am I?Shawn Wildermuth has been tinkering with computers and software since he got a Vic-20 back in the early ‘80s. As a Microsoft MVP since 2002, he’s also involved with Microsoft as an ASP.NET Insider and ClientDev Insider. You may have taken one of his more than twenty courses on Pluralsight (http://shawnw.me/psauthor) including his latest: “Building a Web App with ASP.NET Core, MVC, EF and Angular”. He’s authored eight books and innumerable articles on software development. You can also see him at one of the local and international conferences he’s spoken at including TechEd, Oredev, SDC, NDC, VSLive, DevIntersection, MIX, Devteach, DevConnections and Dev Reach. He is one of the Wilder Minds. You can reach him at his blog at http://wildermuth.com.

Page 4: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

Page 5: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

DemoEnabling Logging

Page 6: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

DemoUsing Logging

Page 7: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

DemoConfiguring Logging

Page 8: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

DemoUsing Scopes

Page 9: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

Common Logging Providers Serilog– https://github.com/serilog/serilog-extensions-logging

Elmah.io– https://github.com/elmahio/Elmah.Io.Framework.Logging

Loggr– https://github.com/imobile3/Loggr.Extensions.Logging

Nlog– https://github.com/NLog/NLog.Extensions.Logging

Page 10: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

DemoUsing Serilog

Page 11: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

DemoSeriloging to a Service

Page 12: ASP.NET Core Logging

ASP.NET Core Logging © 2016 Wilder Minds LLC

Takeaways… ASP.NET Core 1.0– dot.net

My Pluralsight ASP.NET Core Course– shawnw.me/learncore

My Blog– wildermuth.com