This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
v10.15.0
New Features
- Add initial support for request/response logging via setting environment variables.
SettingAZURE_GO_SDK_LOG_LEVEL
toLogInfo
will log request/response
without their bodies. To include the bodies set the log level toLogDebug
.
By default the logger writes to strerr, however it can also write to stdout or a file
if specified inAZURE_GO_SDK_LOG_FILE
. Note that if the specified file
already exists it will be truncated.
IMPORTANT: by default the logger will redact the Authorization and Ocp-Apim-Subscription-Key
headers. Any other secrets will not be redacted.