NLog.Web 6.0.5

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