amazon-web-services - 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.
解决方案
推荐阅读
- ideavim - 更简单的方法来制作适用于 Ideavim 中所有文本对象的映射?
- javascript - 如何使用 multer-sftp 下载文件
- sql - 通过过滤那些从未分配给另一个人的人来返回一个价值表
- javascript - 反应 rc-table 固定列创建重复项
- python - 在不使用临时变量的情况下从不同的行(来自文件输入库)交换数字
- mysql - 在 InnoDB 中,事务中的所有 sql 吗?
- npm - 运行 `npm ci` 返回 `pkg-dir not access from find-cache-dir`
- android - 自定义按钮不显示android studio
- python-3.x - 在 Python 3 中的 CSV 文件中的两个连续行之间插入新行
- php - 如何从表中找到与不同用户ID匹配的值的数量