Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boeapen opened this issue Sep 27, 2024 · 2 comments
Labels
Needs: Attention 👋 type:question An issue that's a question

Comments

@boeapen
Copy link

boeapen commented Sep 27, 2024

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

@boeapen boeapen added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Sep 27, 2024
@Ndiritu
Copy link
Contributor

Ndiritu commented Sep 30, 2024

Hi @boeapen
We still have documentation gaps to address around logging.
We use OpenTelemetry by default to log. Please see this sample for how to set this up.

@Ndiritu Ndiritu added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Sep 30, 2024
@boeapen
Copy link
Author

boeapen commented Sep 30, 2024

Thanks for the details. Any plans on adding a documentation around logging? This is a must have.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention 👋 type:question An issue that's a question
Projects
None yet
Development

No branches or pull requests

2 participants