Skip to content

Make HttpLoggingPolicy log level configurable #43955

@pvaneck

Description

@pvaneck

The current HttpLoggingPolicy is hardcoded to log all request and response information at the logging.INFO level. This can be inflexible for users who integrate with centralized logging systems (e.g., Grafana/Loki) and have specific requirements for log categorization. Some users might prefer to log HTTP request/response details at the logging.DEBUG level.

We should consider allowing the logging level to be configurable by the user. This can be through a constructor kwarg or potentially an environment variable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions