-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Not able to see any Logs from SDK Storage Blob #5130
Comments
An added piece of information that @vmaheshw sent me separately: This would be an update to the logging policy in azure core. @alzimmermsft could you give some insight on whether it would be possible to add this? |
@JonathanGiles could you also comment on whether we'd be able to bring forward some of the v11 functionality like logging slow requests as a warning? |
Definitely. Open to PRs to enable this. |
System.setProperty(BaseConfigurations.AZURE_LOG_LEVEL, "1"); @rickle-msft This is how I'm able to see the logs. Is this the only way? |
That is one of the ways currently. @alzimmermsft suggested that there is one other option and can hopefully share it here. I also gather that there are plans to revamp that interface. Logging comes from the core SDK instead of Storage specifically, so I'll have to rely on Alan for more details. |
@vmaheshw There are two ways to set the logging level, either setting a property or using an environment variable. Both will check for |
Logs can be enabled via the two methods mentioned above. @vmaheshw please re-open this issue if you have further needs or requests regarding this. |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
@rickle-msft : Any update on the feature to got WARN for slow requests and customize the timer as discussed above. This was present in V10.5 |
Logging is handled in Azure Core, so I can't say for certain, but from what I'm seeing, it looks like it'll be included in preview 5 (next month) as the goal for preview 4 has been to get as many of the api breaks finished as possible so they are out of the way earlier rather than later |
Describe the bug
I want to see the logs for http request, retry number and http response with total time (any delay). I used the following api, but I'm not able see any logs.
BlobServiceClient storageClient = new BlobServiceClientBuilder().endpoint(endpoint).credential(credential).httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS).buildClient();
Exception or Stack Trace
To Reproduce
Current git Master and add this line in BasicExamples.java
Code Snippet
Add the code snippet that causes the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: