NLog.Web 6.1.0

NLog.Web

Integrates NLog with the System.Web.HttpContext. If using ASP.NET Core then check NLog.Web.AspNetCore.

Providing features like:

  • Enrich logging output with additional details from active HttpContext using NLog LayoutRenderers, by just updating the NLog configuration.
  • Supports HttpModule injection for HTTP Request 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:

  • .NET 3.5 - 4.8

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

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

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

NLog.LogManager.Setup().RegisterNLogWeb();

Useful Links:

No packages depend on NLog.Web.

Remember to register NLog.Web in NLog.config <extensions> <add assembly="NLog.Web" /> </extensions> Alternative register NLog.Web from code: NLog.LogManager.Setup().RegisterNLogWeb() 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

.NET Framework 3.5

.NET Framework 4.6

Version Downloads Last updated
6.1.0 2 11/15/2025
6.0.6 2 11/12/2025
6.0.5 3 10/12/2025
6.0.4 5 09/15/2025
6.0.3 5 09/15/2025
6.0.2 5 09/15/2025
6.0.1 6 07/04/2025
6.0.0 6 06/27/2025
6.0.0-rc4 6 06/19/2025
6.0.0-rc3 6 06/19/2025
6.0.0-rc2 6 06/12/2025
5.5.0 6 06/12/2025
5.4.0 7 06/12/2025
5.3.15 7 01/23/2025
5.3.14 7 01/04/2025
5.3.13 7 01/23/2025
5.3.12 9 01/23/2025
5.3.11 9 05/14/2024
5.3.10 7 01/23/2025
5.3.9 8 05/14/2024
5.3.8 9 05/14/2024
5.3.7 10 05/14/2024
5.3.5 9 05/14/2024
5.3.4 10 05/14/2024
5.3.3 9 05/14/2024
5.3.2 10 05/13/2024
5.3.1 12 05/14/2024
5.3.0 9 05/14/2024
5.2.3 8 05/13/2024
5.2.2 11 05/13/2024
5.2.1 8 05/14/2024
5.2.0 8 05/14/2024
5.1.5 9 05/14/2024
5.1.4 10 05/14/2024
5.1.2 8 05/13/2024
5.1.1 9 05/14/2024
5.1.0 10 05/14/2024
5.0.0 8 05/12/2024
4.15.0 8 05/17/2024
4.14.0 9 05/14/2024
4.13.0 8 05/14/2024
4.12.0 8 05/14/2024
4.11.0 9 05/13/2024
4.10.0 15 05/14/2024
4.9.3 9 05/14/2024
4.9.2 8 05/14/2024
4.9.1 10 05/14/2024
4.9.0 10 05/14/2024
4.8.5 11 05/14/2024
4.8.4 9 05/13/2024
4.8.3 12 05/14/2024
4.8.2 13 05/14/2024
4.8.1 9 05/17/2024
4.8.0 9 05/14/2024
4.7.1 9 05/14/2024
4.7.0 9 05/14/2024
4.6.0 12 05/13/2024
4.5.3 11 05/12/2024
4.5.2 13 05/14/2024
4.5.1 10 05/14/2024
4.5.0 10 05/14/2024
4.4.0 9 05/14/2024
4.3.1 12 05/14/2024
4.3.0 9 05/14/2024
4.2.1 9 05/14/2024
4.2.0 8 05/17/2024
4.1.0 9 05/14/2024
4.0.0 8 05/14/2024
2.0.0 9 03/05/2024
1.0.8 10 05/14/2024