首页 > 解决方案 > Logging different levels to different logs in cloud watch from an aws lambda

问题描述

I've been trying to find a solution for a problem we have, in our application we have different types of logs. We want to log changes to (for example) the database in a different way than simple errors or code execution information.

Currently we're using the default asp.net core logging and i'm hoping we can stay with this. At the moment everything gets written to the same log in AWS cloudwatch.

Is there a way to seperate the logs?

I know with Serilog you can output different log levels to different files as explained in this answer: ASP.NET Core logging in 2 different files

I'm looking for something similar but for cloudwatch.

标签: amazon-web-servicesasp.net-coreaws-lambdaamazon-cloudwatch

解决方案


推荐阅读