Part-5: .NET Core - Logging in ASP.NET Core Web API using NLog

preview_player
Показать описание
In this session we will discuss following topic:

Built-in logging providers:
ASP.NET Core ships the following providers:
• Console
• Debug
• EventSource
• EventLog
• TraceSource
• AzureAppServicesFile
• AzureAppServicesBlob
• ApplicationInsights

Third-party logging providers:
Third-party logging frameworks that work with ASP.NET Core:
• Gelf
• JSNLog
• Loggr
• NLog
• Sentry
• Serilog
• Stackdriver

Steps
• Create/Use existing ASP.NET Core project
• Add Nuget Package
• Write logs in controller

References:

Рекомендации по теме
Комментарии
Автор

How can we put trace id??
Tracing is very important while logging.

db
Автор

Hey, thanks for the great video.
Could you provide us with the code inside the nlog.config?

roostermaind