Logging in .NET 5/Core api using NLog

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for the video. It helped me configure NLog correctly.

GagandeepSingh-lzbg
Автор

if it were a network route, how should it be there?

wilsonavello
Автор

Two things:
- No need to catch exception in every action. There is error logging middleware for this purpose.
- Bad practice to specify log output folder in code. Should be configured via appsettings or similar.

Neolisk