This project showcases the ability of Serilog and log to AWS CloudWatch.
- AWS CloudWatch Sink & Setup
- LogStreamName generation with Environment
- Configuration Example
- Dependency Injection setup
{
"Serilog:AWS": {
"LogToCloudWatch": true,
// Serilog Setting
"MinimumLevel": "Information",
// AWS specific settings
"LogGroup": "dotnet-samples",
"Region": "us-east-1",
"RetentionPolicy": "SixMonths",
"AccessKey": "<TODO>",
"SecretKey": "<TODO>"
}
}
{
"Serilog:AWS": {
"AccessKey": "YOUR-ACCESKEY-HERE",
"SecretKey": "YOUR-SECRETKEY-HERE"
}
}