Я хочу зарегистрировать запрос / ответ на клиентском сайте с Azure хранилищем BLOB-объектов для Java sdk(ver12
).
В онлайн-документе Microsoft [https://docs.microsoft.com/en-us/rest/api/storageservices/client-side-logging-with-the-microsoft-azure-storage-sdk-for-java] я нашел этот пример кода.
// Set logging off by default.
OperationContext.setLoggingEnabledByDefault(false);
OperationContext ctx = new OperationContext();
ctx.setLoggingEnabled(true);
// Create an operation to add a new customer to the people table.
TableOperation insertCustomer1 = TableOperation.insertOrReplace(customer1);
// Submit the operation to the table service.
table.execute(insertCustomer1, null, ctx);
Но это не работает. OperationContext
нельзя найти в библиотеках. Может быть, это образец более старой версии.
Я надеюсь, что кто-то может дать мне пример кода, Спасибо.