Logging in .NET Core 3.0 and Beyond - Configuration, Setup, and More

preview_player
Показать описание
Did you know that .NET Core has logging built right into it? Do you know how to configure it or how it works? In this video, we are going to look at how logging works in .NET Core and how to make it even better. This video was built on .NET Core 3.0 but it will work in both older and newer versions of .NET Core.

0:00 - Intro
1:20 - Getting started: ASP .NET Core 3.0 demo application
3:37 - ILogger in .NET Core application: where and how it is configured
8:46 - ILogger configuration: Basic overview
19:24 - ILogger configuration: Loggers
21:35 - ILogger configuration: Implementation
26:12 - Log Levels explained
32:34 - Additional information in Log message: variables in the log message
36:26 - Exceptions in Log messages
47:06 - ILogger factory: custom log category
50:36 - Logging the start of the application
52:53 - Concluding remarks
Рекомендации по теме
Комментарии
Автор

Tim, this channel is an absolute gem. You're a great teacher and I recommend you to everyone asking for C# help.

mrterrbl
Автор

"I don't like magic, when it breaks down you have to figure it out first before you can fix it"
ABSOLUTLEY YES.


ASP CORE is brilliant in how it works, but boy does this configuration through extension methods obscure how simple it actually works. Both the services collection and pipeline, the core components of how it works, get obscured.


Everyone creating anything serious shoud have a solid grasp of how the 'pipeline' (it's more of a trampoline) and the mvc routing mechanism work and how the classes it news up interact with the DI services. (maybe an idea for a video?)


It's probably less work to go down understand that than to stare at the magic show and keeping your fingers crossed. Once you get it it really is so simple and elegant.

gert-janvanderkamp
Автор

After wasting 2 days, I reached to this video...it's awesome..u simplified everything so smoothly...I can't even imagine to use this Logging without any help of yours..
Thank u
Thank u so much

mahimakapoor
Автор

I usually don't watch long videos since they are wasting of time, but your videos are gold, I listen to each word and don't waste any second of your valuable videos, you are great Tim, I hope you always create videos, we learn a lot from you

amalaljohari
Автор

Thank you for an excellent video @IAmTimCorey! My favorite part: 53:02 "Where do you go from here? Well, ...to start off with, you stop right here." :]

lcee
Автор

this tutorial is amazing...I read the positive comments before starting the course and I am happy to take this course.

akshaynegi
Автор

Tim, I've been using the basics in Serilog for quite a while and would love to see an in-depth discussion of the advanced features of Serilog. Thanks for the great videos!

jameshoiby
Автор

This was one the great content I have ever learned. Thanks Tim Corey.

SumanNath
Автор

Master teacher!! No words! The best!! Thanks!!!

viniciussantosaguiar
Автор

For all tutorials I have watch, you are the one explain it line by line

alvinbernardo
Автор

I keep getting back to this video over and over. Content is solid ❤️

dalmirogranas
Автор

This is so much better then Log4Net in my opinion. Simple things like this are what made me fall in love with .NET Core. Everything I need just comes built-in!

TheChodex
Автор

My headache relieved after this video bless you

imanqoly
Автор

i watched the whole thing but didn't what i came for which was how to log to files n=but still worth watching - thanks

sokkpupptz
Автор

Thank you for explaining all the behind-the-scenes logic. It was very helpful.

wchishti
Автор

Thank you, Tim, for such informative video about .NET core ILogger, videos on Serilog and ApplicationInsights would also be exciting. Thanks again...

bhoopendrasharma
Автор

Very well explained, step by step and thorough. Answers all questions I would've had.

LivingTheDream
Автор

Thanks Tim, another incredibly useful breakdown!

austinhummel
Автор

Great timing Tim, I'm learning Core 2.2 (don't use VS2019 yet) - Looking forward to watching this in a day or two. Thanks!

harag
Автор

From now on, I'll just say For the Algorithm.
Cause I am tired of writing that you are an outstanding teacher.

ilo