

# Application logging
<a name="logging"></a>

AWS provides native logging for full, near real-time visibility and transparency over the operation of your environment. These tools can integrate with monitoring solutions for end-to-end visibility and resolution of security-related activity within your IT organization. 

You can integrate your .NET Framework applications with Amazon CloudWatch by using the .NET logging frameworks listed in the following table to implement application-level logging.


****  

| Logging framework | Description | Download and sample | 
| --- | --- | --- | 
| **AspNetCore** | An AWS implementation of ASP.NET Core ILogger that records logging messages to Amazon CloudWatch Logs. | [NuGet package](https://www.nuget.org/packages/AWS.Logger.AspNetCore/) [Logging sample](https://github.com/aws/aws-logging-dotnet/tree/master/samples/AspNetCore) | 
| **NLog** | An AWS NLog target that records logging messages to Amazon CloudWatch Logs. | [NuGet package](https://www.nuget.org/packages/AWS.Logger.NLog) [Logging sample](https://github.com/aws/aws-logging-dotnet/tree/master/samples/NLog) | 
| **Serilog** | An AWS SeriLog sink that records logging messages to Amazon CloudWatch Logs. | [NuGet package](https://www.nuget.org/packages/AWS.Logger.SeriLog/) [Logging sample](https://github.com/aws/aws-logging-dotnet/tree/master/samples/Serilog) | 
| **Log4net** | An AWS Log4net appender that records logging messages to Amazon CloudWatch Logs. | [NuGet package](https://www.nuget.org/packages/AWS.Logger.Log4net/) [Logging sample](https://github.com/aws/aws-logging-dotnet/tree/master/samples/Log4net) | 

## Resources
<a name="logging-resources"></a>
+ [Amazon CloudWatch User Guide](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) (AWS documentation)
+ [Amazon CloudWatch Logs and .NET Logging Frameworks](https://aws.amazon.com/blogs/developer/amazon-cloudwatch-logs-and-net-logging-frameworks/) (AWS Developer Tools blog)
+ [Amazon.Lambda.Logging.AspNetCore](https://github.com/aws/aws-lambda-dotnet/tree/master/Libraries/src/Amazon.Lambda.Logging.AspNetCore) (GitHub repository)