Logging in WebAPI for DotNet6 (DotNet Core), using NLog.

preview_player
Показать описание
Do global logging in WebAPI. Learn how to use NLog with dependency injection in dotnet6, and how to build an application that uses logging in such a way that all errors are automatically caught and sent to the database. This example uses MariaDB but applies to any database, and also logs to a file. The same principles and code can be applied to non WebAPI templates such as MVC, or console applications.
Рекомендации по теме
Комментарии
Автор

Bro never leave my waiting this long for another vid. I need my DataVids fix, weekly. 😀👍✌️

PIMARINE
Автор

Thank you! The video is very helpful and clear.

FourDollarBill
Автор

This was very useful and timely. Thank you!

tabhorian
Автор

I think you got throw and throw ex mixed around. throw will include the original stack trace where throw (ex) will "restart" the stack trace at that line.

ThomasArdal