I have an ILogger behavior in an IPipelineBehavior that logs Queries and Commands in the API
ILogger
IPipelineBehavior
The code that logs is shown below: