ASP.NET Core: Logging with log4net

ASP.NET Core: Logging with log4net

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 13m | 225 MB

Logging frameworks like log4net can help standardize and streamline the process of event logging: helping developers control which events are output and where to output them. This course teaches a real-world, project-based approach to event logging for ASP.NET Core applications with log4net. Instructor Ervis Trupja explains the benefits of using a logging framework and the options available to you. He then shows how to set up the log4net framework for console, web API apps, and MVC apps, and how to log to different mediums: a regular log file, a rolling file, and a SQL database. Plus, earn how to create a custom exception handler and configure it in the middleware to log exceptions globally.

Table of Contents

Introduction
1 Leverage the power of logging frameworks
2 What you should know

1. Getting Started with Logging
3 What is a logging framework
4 Why use a logging framework
5 What are the common logging frameworks

2. Setting Up log4net in .NET Core
6 Logging to an SQL database
7 Logging levels and appender types
8 Setting up log4net in .NET Core console apps
9 Adding the log4net.config file
10 Logging to the console with colors
11 Setting up log4net in .NET Core web API apps
12 Logging to a file
13 Logging to a rolling file
14 Challenge Setting up log4net in .NET Core MVC apps
15 Solution Setting up log4net in .NET Core MVC apps

3. Setting Up a Global Exception Logger
16 Setting up an exception handler middleware
17 Log all unhandled exceptions to a file
18 Log unhandled exceptions using a filter
19 Handling and logging 404s in MVC

Conclusion
20 Continuing on with logging

Homepage