Logging in ASP NET Core

preview_player
Показать описание
In this video we will discuss Logging in ASP.NET Core.

Logging providers in ASP.NET Core

Text version of the video

Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.

Slides

ASP.NET Core Text Articles & Slides

ASP.NET Core Tutorial

Angular, JavaScript, jQuery, Dot Net & SQL Playlists

A logging provider is the component that stores or displays logs. For example, the Console log provider displays logs on the console. Similarly, the Debug log provider displays logs on the Debug window in Visual Studio.

ASP.NET Core built-in logging providers

Console
Debug
EventSource
EventLog
TraceSource
AzureAppServicesFile
AzureAppServicesBlob
ApplicationInsights

Third party logging providers for ASP.NET Core

NLog
elmah
Serilog
Sentry
Gelf
JSNLog
Loggr
Stackdriver

Default logging providers in ASP.NET Core

Setting up the web server
Loading the host and application configuration from various configuration sources and
Configuring logging

Since ASP.NET Core is open source we can see the complete source on their official github page. The following is the code snippet from CreateDefaultBuilder() method.

.ConfigureLogging((hostingContext, logging) =]
{
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
logging.AddConsole();
logging.AddDebug();
logging.AddEventSourceLogger();
})

Console
Debug
EventSource

"Logging": {
"LogLevel": {
"Default": "Warning",
"Microsoft": "Information"
}
}

LogLevel is used to control how much log data is logged or displayed. We will discuss Log level in detail in our upcoming videos.
Рекомендации по теме
Комментарии
Автор

Why would someone dislike this quality video? people have preference, i understand but when it comes to great video like this there shouldn't be any dislike.

AKINNUBIABIOLA
Автор

Thanks for spending your valuable time for preparing these kind of useful videos.

vaddiparthivenkatamuralikr
Автор

@kudvenkat: nice series. Looking forward to see how you show authentication/authorization and deals with the deployment process. Also would love to see CI/CD process

goforshahriar
Автор

Thank you Venkat for the detail explanation.

abeldaniel
Автор

Dear Venkat, Thanks for providing excellent content.Could you please provide the tutorial for CURD operations using .NetCore & Angular?Like add/delete/update/list in SQL server data base and using angular UI framework

loganathanmanickam
Автор

As usual very great understanding.

Mr.Venkat, in older MVC version to pop-up a bootstap modal we used action using HTML helper but in Dotnet core I m struggling with it and not found any solution. Could you please suggest how to implement in Dotnet core??

Thanking you

ramchandrathakkar
Автор

If u don't mind can u upload a video on time management it is very important now days

nagendrapp
Автор

Im sorry if this is a dumb question but:
How does logging help us when we already have the developer exception pages in place?
Are there any additional benefits to logging all the server acitivity?

AkshayKumar-dzts
Автор

Hi Thanks for video .How can I reach that application. It is useful for me .

ramazanorhan
Автор

how to add pagination in tables of users and roles

mobeenahmedawan
Автор

Hello sir thank you very much for these videos. But i am having some problems with a project I am working on. When I create a controller using scaffolding mechanism it creates perfectly and the application runs correctly but when ever i fill the form and try to post it it redirects me to another page saying "this page isn't working" instead of redirecting me to the index view i have tried creating another controller and other action views but i cant insert data to the database. Please I really need your help sir

techtalk