关于[ASP.NET Core - JSON logger]的摘要:
ASP.NET Core supports a logging API that works with a variety of built-in and third-party logging providers. The built-in providers allow to log to the console, the debug output or as ETW messages. In my case I needed to output the messages and their associated data to console as JSON. This means I had to create a custom logger and integrate it in the ASP.NET Core application.
原文地址: https://www.meziantou.net/asp-net-core-json-logger.htm