microsoftgraph / microsoftgraph/msgraph-sdk-java

logger.setLoggingLevel(LoggerLevel.DEBUG) doesn't capture the Request and Response for Successful API calls

Open
#2,171 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave: type:question
Dominant language
Java
Stars
444
Forks
154
Avg merge
18h 28m
Merged PRs (30d)
4

Description

I am looking for logging the complete request and response for all API calls and using logger.setLoggingLevel(LoggerLevel.DEBUG), its capturing only the API calls that is returned with an error/exceptions (Successfull calls like 200, 201, 202 etc are not captured).
In the SDK Documentation, I am not able to find anything specific for logging on how we can use the SDK for logging the requests and response. I am looking for two things:
A) Can you share the SDK documentation which explains more on the available logging functionality and how to use those?
B) How I can enable Debug logging for all API requests including Successful ones too?
TIA

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the SDK's logging documentation and configuration, then reproduce DEBUG logging for API calls that return successful status codes. Compare successful and error responses to identify where request/response logging differs; done means the behavior is explained and successful calls are captured as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.