我有一个基于 .net core 3.1 的 Web API。
我使用 SeriLog 库作为记录器。
这是我的 SeriLog 配置。Serilog 已从“appsettings.json”配置。
如果存在,我需要将“请求正文”参数添加到日志的输出中。有什么办法可以配置这个。另外,我分享了我的日志输出。
c# serilog asp.net-core
asp.net-core ×1
c# ×1
serilog ×1