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

Open
#248 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp

Research direction

Start by tracing the custom LoggingFilter and its WriteLogAsync method through the request made by App.Clients.UserService.RunRequestAsync(). Determine whether the caller information shown in the issue is available at that point; done means the issue has a confirmed approach or a clearly documented limitation, with any needed scope identified.

Written by the indexing model from the issue text.

Description

等待反馈(needs feedback)

我实现了自己的LoggingFilter

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

Dominant language
C#
Stars
2.1k
Forks
445
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnetcore/WebApiClient

All issues in dotnetcore/WebApiClient

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.