deleteBucketLogging() public méthode

关闭bucket访问日志记录功能
public deleteBucketLogging ( string $bucket, array $options = NULL ) : null
$bucket string bucket名称
$options array 可以为空
Résultat null
/**
 * 删除bucket的Logging配置
 *
 * @param OssClient $ossClient OssClient实例
 * @param string $bucket 存储空间名称
 * @return null
 */
function deleteBucketLogging($ossClient, $bucket)
{
    try {
        $ossClient->deleteBucketLogging($bucket);
    } catch (OssException $e) {
        printf(__FUNCTION__ . ": FAILED\n");
        printf($e->getMessage() . "\n");
        return;
    }
    print __FUNCTION__ . ": OK" . "\n";
}