use of com.azure.core.http.policy.HttpLogOptions in project samza by apache.
the class AzureBlobClientBuilder method getBlobServiceClientBuilder.
/**
* Method to get the builder {@link BlobServiceClientBuilder} for creating BlobServiceAsyncClient.
* This builder is not provided the credential for authentication here.
* this builder is given an endpoint for the Azure Storage account and a http client to be passed on to the
* BlobServiceAsyncClient for blob creation.
* @return BlobServiceClientBuilder
*/
private BlobServiceClientBuilder getBlobServiceClientBuilder() {
// From the Azure portal, get your Storage account blob service AsyncClient endpoint.
String endpoint = String.format(Locale.ROOT, azureUrlFormat, azureBlobConfig.getAzureAccountName(systemName));
HttpLogOptions httpLogOptions = new HttpLogOptions();
httpLogOptions.setLogLevel(HttpLogDetailLevel.HEADERS);
BlobServiceClientBuilder blobServiceClientBuilder = new BlobServiceClientBuilder().httpLogOptions(httpLogOptions).endpoint(endpoint).httpClient(getHttpClient());
return blobServiceClientBuilder;
}
Aggregations