.NET Logging Done Right: An Opinionated Approach Using Serilog

Establish a great logging framework for all of your applications using Serilog as a foundation, then get them written to database sinks (SQL Server and Elasticsearch specifically), and explore log data using custom and in-the-box tools.
Course info
Rating
(67)
Level
Intermediate
Updated
Sep 25, 2017
Duration
5h 1m
Table of contents
Course Overview
Goals of Good Logging / Intro to Serilog
Write a Global Logger as a Serilog Wrapper
Global Logging: ASP.NET MVC and Web Forms
Global Logging: ASP.NET WebAPI
Global Logging: JavaScript/TypeScript
Global Logging: WPF and WCF
Global Logging ASP.NET Core
Choosing the Right Sink to Enable Analysis
Description
Course info
Rating
(67)
Level
Intermediate
Updated
Sep 25, 2017
Duration
5h 1m
Description

Establishing a foundational framework for logging can save hours in troubleshooting and provide valuable insights to both utilization and performance within all of your applications.

In this course, .NET Logging Done Right: An Opinionated Approach Using Serilog, you will learn about 4 primary "things" (usage, performance, errors, and diagnostics) to log and how to log them. You will also learn how to globally write these log entries without needing to inject logging code everywhere in an application – so developers can focus on business logic, not logging code.

Global logging will be shown with all flavors of

  • ASP.NET
  • WPF applications
  • WCF services, and
  • TypeScript/JavaScript applications
Lastly, you will see techniques for searching, exploring, and visualizing log entries that you will have written to both SQL Server and to Elasticsearch to gain insight into the application, its usage, and how it's performing.

By the end this course, you’ll know how to create a great logging framework that will provide huge benefits to you and many other people who have a stake in your applications

Course FAQ
Course FAQ
What is Serilog?

Serilog is a logging framework integrated with .NET applications for recording diagnostic logs into files and SQL/NoSQL databases

What are some benefits of Serilog?

Some of the benefits of Serilog include:

  • diagnostic logging into files, console, and elsewhere
  • Easy to set up
  • Clean API
  • Portable between .NET platforms
  • Powerful structured event data
What will I learn in this course?

In this course you will learn about:

  • An introduction to Serilog
  • Goals of good logging
  • What to log and how to log it
  • Global Logging in ASP.NET MVC and web forms
  • Global Logging in JavaScript/TypeScript
  • Global Logging in ASP.NET Core
  • Global Logging with WPF and WCF
  • Usage, performance, errors, and diagnostics
  • Search, explore, and visualize log entries
  • Much more
Who is this course for?

This course is intended for those who want to learn Serilog and its approach to .NET Logging. Especially useful for people who want to minimize situations where they have to reproduce problems in their applications or jump on escalated issues to troubleshoot.

What are the prerequisites for this course?

This is an intermediate level course, so it assumes some previous exposure to working with application development, including troubleshooting and fixing issues in applications. Familiarity with ASP.NET, MVC, Web forms, JavaScript, WPF and WCF will come in handy.

About the author
About the author

Full-stack developer, architect using the Microsoft stack and other key tools to create awesome solutions.

More from the author
Effective Logging in ASP.NET Core
Intermediate
2h 26m
Jul 29, 2020
More courses by Erik Dahl
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone! My name is Erik Dahl, and welcome to my course,. NET Logging Done Right: An Opinionated Approach Using Serilog. I'm a principle architect at RealPage with a lot of experience working in enterprise applications. Does troubleshooting your applications involve a lot of trying to reproduce problems? Or do you end up having to jump on emergency issues just because someone comes up to you and asks you to fix something? Getting logging done right can help minimize these things. In this course, we're going to establish a great logging framework using Serilog. Then we'll be applying it to a variety of applications with a special focus on minimizing the impact to application code. We'll also be exploring the data that we've logged using viewers and dashboards. Some of the major topics that we'll cover include the goals of good logging, objectives of a good logging framework, establishing such a framework using Serilog, applying that framework to different application types including ASP. NET apps, Web API, JavaScript, Angular 4, WPF and WCF, as well as ASP. NET Core and writing log entries to SQL Server and Elasticsearch, and then exploring and visualizing the data. By the end of this course, you'll know how to create a great logging framework that will provide huge benefits to you and many other people who have a stake in your applications. I hope you'll join me on this journey to learn great logging with the. NET Logging Done Right: An Opinionated Approach Using Serilog course at Pluralsight.