microsoftgraph / microsoftgraph/msgraph-sdk-java

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

Offen
#2,171 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Needs: Attention :wave: type:question
Vorherrschende Sprache
Java
Sterne
444
Forks
154
Ø Merge
18 Std. 28 Min.
Gemergte PRs (30 T.)
4

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit der Prüfung der Logging-Dokumentation und -Konfiguration des SDK und reproduzieren Sie anschließend das DEBUG-Logging für API-Aufrufe, die erfolgreiche Statuscodes zurückgeben. Vergleichen Sie erfolgreiche und Fehlerantworten, um festzustellen, wo sich das Request-/Response-Logging unterscheidet; abgeschlossen ist die Aufgabe, wenn das Verhalten erklärt ist und erfolgreiche Aufrufe wie angefordert erfasst werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api, observability
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.