NLog.Web 6.0.0-rc2

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