如何正确配置 wcfCore 的请求和响应日志记录?
在旧的 wcf 上是:
https://learn.microsoft.com/en-us/dotnet/framework/wcf/diagnostics/configuring-message-logging?redirectedfrom=MSDN
我还没有找到任何配置此类日志记录的选项。因此,我使用接口实现了所需的功能:
IDispatchMessageInspector、IServiceBehavior。
https://github.com/lsmolinski/CoreWCFServiceWithRequestAndResponseLoging