I am new to .Net Core 5.0, I am unable to find any suitable guide to check how to setup logging to Cloudwatch using Serilog.
Currently, in our application, we are logging to file & console using Serilog. Now the requirement is to log in Cloudwatch also. Existing configuration is in appsettings.Development.json file where we have a section called "Serilog" which contains the "writeTo" section. Can anyone guide me how to set up logging in Cloudwatch using appsettings.json file ??
The AWS.Logger.SeriLog NuGet package provides a SeriLog sink that will send the log messages to CloudWatch Logs. The package is on GitHub with more information on how to use. https://github.com/aws/aws-logging-dotnet#serilog
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.