Skip to content

Enable customers to configure debug logging #19419

@tasherif-msft

Description

@tasherif-msft

Currently in order for customers to log request/response headers/body, etc, they need to set their logging level to DEBUG .
However, They do not have any control over which things should be logged and what should not.
This means that if for example a customer wants to upload 2 GBs of data and set the logger to debug, it would print the entire request body (i.e the data) which would overwhelm the console and would be of no real use to the customer.

Reference code:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies.py#L201-#L217

We need to allow the customer to specify what they wish to log.

Metadata

Metadata

Assignees

Labels

StorageStorage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions