Microsoft记录单行

时间:2019-05-16 19:47:50

标签: c# logging

有人可以推荐如何将Microsoft Logging stdout转换为单行并消除类方法

默认记录器输出

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/api/todo/0

info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method TodoApi.Controllers.TodoController.GetById (TodoApi) with arguments (0) - ModelState is Valid

我想要的

info: Request starting HTTP/1.1 GET http://localhost:5000/api/todo/0

info: Executing action method TodoApi.Controllers.TodoController.GetById (TodoApi) with arguments (0) - ModelState is Valid

0 个答案:

没有答案