• 0. Create a new ASP.NET Core project
  • 1. Add dependency in csproj manually or using NuGet
  • 2. Create a nlog.config file.
  • 3. Enable copy to bin folder
  • 4. Update program.cs
  • 5. Configure appsettings.json
  • 6. Write logs
  • 7. Example Output
  • nlog-own-2019-10-14.log
  • nlog-all-2019-10-14.log
  • Configure NLog Targets for output