dotnetcore / WebApiClient

A REST API library with better functionality, performance, and scalability than refit
https://webapiclient.github.io/
MIT License
2.06k stars 444 forks source link

调用的地方比较多,有办法在LoggingFilter中获取到调用的信息 #248

Open Ramoshuai opened 7 months ago

Ramoshuai commented 7 months ago

我实现了自己的LoggingFilter

想在 WriteLogAsync 中获取到是哪个地方调用的接口,比如 at App.Clients.UserService.RunRequestAsync() in D:\Repos\WebApiClient\App\Clients\UserService.cs:line 31

EzrealJ commented 7 months ago

实现这个需求需要两个要素