Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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.

Assessment

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

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.

Description

Needs: Attention :wave: type:question

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

Dominant language
Java
Stars
444
Forks
154
Avg merge
18h 28m
Merged PRs (30d)
4

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.

More from microsoftgraph/msgraph-sdk-java

All issues in microsoftgraph/msgraph-sdk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.