# NLog.Web
**Repository Path**: lwl1569/NLog.Web
## Basic Information
- **Project Name**: NLog.Web
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: BSD-3-Clause
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-22
- **Last Updated**: 2022-01-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

# NLog.Web (ASP.NET & ASP.NET Core)
[](https://www.nuget.org/packages/NLog.Web.AspNetCore)
[](https://www.nuget.org/packages/NLog.Web.AspNetCore)
[](https://www.nuget.org/packages/NLog.Web)
[](https://www.nuget.org/packages/NLog.Web)
[](https://ci.appveyor.com/project/nlog/nlog-web/branch/master)
[](https://sonarcloud.io/dashboard/?id=nlog.web&branch=master)
[](https://sonarcloud.io/dashboard/?id=nlog.web&branch=master)
[](https://sonarcloud.io/dashboard/?id=nlog.web&branch=master)
[](https://sonarcloud.io/project/issues?id=nlog.web&branch=master&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures/domain/Duplications?id=nlog.web&branch=master)
[](https://sonarcloud.io/dashboard/?id=nlog.web&branch=master)
[](https://sonarcloud.io/component_measures?id=nlog.web&branch=master&metric=coverage)
These packages are extensions to [NLog](https://github.com/NLog/NLog/).
The packages contain targets and layout-renderes specific to ASP.NET (Core), MVC and IIS.
## Getting started with NLog
- [Getting started for ASP.NET Core 6](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-6)
- [Getting started for ASP.NET Core 5](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-5)
- [Getting started for ASP.NET Core 3](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-3)
- [Getting started for ASP.NET Core 2](https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-2)
- [Getting started for .NET Core 2 Console application](https://github.com/NLog/NLog/wiki/Getting-started-with-.NET-Core-2---Console-application)
- [How to use structured logging](https://github.com/NLog/NLog/wiki/How-to-use-structured-logging)
### Config
- All config options: [nlog-project.org/config](https://nlog-project.org/config)
### Troubleshooting
- [Troubleshooting](https://github.com/NLog/NLog/wiki/Logging-troubleshooting)
- [Internal log](https://github.com/NLog/NLog/wiki/Internal-logging)
## Releases
For updates and releases, check [CHANGELOG.MD](CHANGELOG.MD) or [Releases](https://github.com/NLog/NLog.Web/releases)
## ASP.NET Core
The [NLog.Web.AspNetCore](https://www.nuget.org/packages/NLog.Web.AspNetCore)-package supports the platforms:
- For ASP.NET Core 6, .NET 6
- For ASP.NET Core 5, .NET 5
- For ASP.NET Core 3, .NET Core 3.0
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
ℹ️ Missing the trace and debug logs? [Check your appsettings.json](https://github.com/NLog/NLog.Web/wiki/Missing-trace%5Cdebug-logs-in-ASP.NET-Core-2%3F)
Use the NLog.Web.AspNetCore package
- [Supported layout renderers for ASP.NET Core](https://nlog-project.org/config/?tab=layout-renderers&search=package:nlog.web.aspnetcore)
## ASP.NET (non-core)
The [NLog.Web](https://www.nuget.org/packages/NLog.Web)-package works with classic ASP.NET MVC
- [Supported targets for ASP.NET](https://nlog-project.org/config/?tab=targets&search=package:nlog.web)
- [Supported layout renderers for ASP.NET](https://nlog-project.org/config/?tab=layout-renderers&search=package:nlog.web)
- NLog 5.0 requires that NLog.config must include NLog.Web in extensions:
```xml
```
## HTTP module (ASP.NET non-core)
_note: not listed on https://nlog-project.org/config_
There is a ASP.NET ASP.NET HttpModule that enables NLog to hook BeginRequest and EndRequest events easily.
The `NLogHttpModule` needs a registration in the web.config:
```xml
```
## Contributions
Contributions are highly appreciated! Please make sure if works for ASP.NET and ASP.NET Core if possible and make sure it is covered by unit tests.
## License
BSD