I'm developing asp .net core 2.1 WEB-API application.
I use ILogger with configuration:
"Logging": { "LogLevel": { "Default": "Debug", "System": "Information", "Microsoft": "Information" } And on request i see log:
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1] Executing action method ActivationService.Controllers.ActivationController.Post (ActivationService) with arguments (ActivationService.Contracts.ActivationRequest) - Validation state: Valid
and
Executed action method ActivationService.Controllers.ActivationController.Post (ActivationService), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 174605.9201ms.
Is there way to confugure asp.net to log with trace body of response and request?