• 0. Create a new ASP.NET Core project
  • 1. Add dependency in csproj manually or using NuGet
  • 2. Create a nlog.config file.
  • 3. Update program.cs
  • 4. Microsoft Logging Filters
  • 5. Write logs
  • 6. Example Output
  • nlog-own-2021-12-01.log
  • nlog-all-2021-12-01.log
  • Configure NLog Targets for output