Logging
Updated at:2025-11-03
put_bucket_logging
This API is designed to enable bucket access logs and specify the bucket for storing logs and the file prefix of access logs. For access log rules, refer to [Log Naming Rules](BOS/Developer Guide/Bucket Basic Operations/Set access logs.md#Log naming rules) and [Log Format](BOS/Developer Guide/Bucket Basic Operations/Set access logs.md#Log format).
Python
1bos_client.put_bucket_logging(source_bucket, target_bucket, prefix)
get_bucket_logging
This API retrieves the access log configuration of a bucket.
Python
1response = bos_client.get_bucket_logging(bucket_name)
delete_bucket_logging
Python
1bos_client.delete_bucket_logging(bucket_name)
