NLog.Web.AspNetCore 6.0.0-rc2

NLog.Web.AspNetCore

Integrates NLog as Logging provider for the ASP.NET Core platform, by just calling UseNLog() with the application host-builder.

Providing features like:

  • Enrich logging output with additional details from active HttpContext using NLog LayoutRenderers, by just updating the NLog configuration.
  • Supports middleware injection for HTTP Request Logging and HTTP Response Logging.
  • Routing logging output to multiple destinations via the available NLog Targets
  • Rendering logging output into standard formats like JSON, CVS, W3C ELF and XML using NLog Layouts.
  • Contributions are always welcome, by creating a pull request.

Supported platforms:

  • ASP.NET Core 6, 7, 8 and 9
  • ASP.NET Core 2, .NET Standard 2.0 and .NET 4.6.1+

Registration of NLog.Web.AspNetCore in the NLog.config file:

<extensions>
    <add assembly="NLog.Web.AspNetCore"/>
</extensions>

Registration of NLog.Web.AspNetCore can also be performed with fluent setup:

NLog.LogManager.Setup().LoadConfigurationFromAppSettings();

Useful Links:

No packages depend on NLog.Web.AspNetCore.

ChangeLog: - Updated dependency NLog v6.0 RC2 - Removed support for .NET Core 3.1 + .NET v5 - Enabled nullable references - Removed obsolete extension-methods to register NLog as Logging Provider. - Removed support for EvaluateAsNestedProperties, instead use ObjectPath. - Renamed class-names for old LayoutRenderers to follow standards (@bakgerman) - Marked AspNetLayoutRendererBase DoAppend-method as obsolete (@bakgerman) List of major changes in NLog v6.0: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html Full changelog: https://github.com/NLog/NLog.Web/releases List of available Layout Renderers: https://nlog-project.org/config/?tab=layout-renderers&search=package:nlog.web.aspnetcore

Version Downloads Last updated
6.0.0-rc4 0 6/15/2025
6.0.0-rc3 1 6/10/2025
6.0.0-rc2 1 6/8/2025
5.5.0 0 5/29/2025
5.4.0 0 2/2/2025
5.3.15 0 11/21/2024
5.3.14 0 9/23/2024
5.3.13 1 6/16/2025
5.3.12 0 8/12/2024
5.3.11 0 5/7/2024
5.3.10 0 4/30/2024
5.3.9 0 4/27/2024
5.3.8 0 12/29/2023
5.3.7 1 6/7/2025
5.3.5 0 10/15/2023
5.3.4 0 9/6/2023
5.3.3 0 8/6/2023
5.3.2 0 7/4/2023
5.3.1 0 7/1/2023
5.3.0 0 5/30/2023
5.2.3 0 3/28/2023
5.2.2 0 2/17/2023
5.2.1 0 12/30/2022
5.2.0 1 6/15/2025
5.1.5 0 10/25/2022
5.1.4 0 9/1/2022
5.1.2 0 9/1/2022
5.1.1 0 8/17/2022
5.1.0 0 7/18/2022
5.0.0 0 5/17/2022
4.15.0 0 6/4/2022
4.14.0 0 8/28/2021
4.13.0 0 7/14/2021
4.13.0-readme-preview 0 5/3/2021
4.12.0 0 3/29/2021
4.11.0 0 2/27/2021
4.10.0 0 12/30/2020
4.9.3 0 8/1/2020
4.9.2 1 6/9/2025
4.9.1 0 3/30/2020
4.9.0 0 10/11/2019
4.8.6 0 9/30/2019
4.8.5 0 9/7/2019
4.8.4 0 7/2/2019
4.8.3 1 6/12/2025
4.8.2 0 5/6/2019
4.8.1 0 3/18/2019
4.8.0 0 1/25/2019
4.7.1 0 1/6/2019
4.7.0 0 9/22/2018
4.6.0 0 8/5/2018
4.5.4 0 5/10/2018
4.5.3 0 4/29/2018
4.5.2 1 6/12/2025
4.5.1 0 4/2/2018
4.5.0 1 6/10/2025
4.4.1 1 6/8/2025
4.4.0 0 5/14/2017
4.3.1 0 2/10/2017
4.3.0 0 1/18/2017
4.2.4 0 7/3/2016
4.2.3 0 5/24/2016