啟用 Google Cloud Shell
登入 Google Cloud Platform 之後,先啟用 Google Cloud Sheel
點下去之後會出現連線中
gsutil mb gs://example-logs-bucket
gsutil acl ch -g cloud-storage-analytics@google.com:W gs://example-logs-bucket gsutil defacl set project-private gs://example-logs-bucket
gsutil logging set on -b gs://example-logs-bucket [-o log_object_prefix ] gs://example-bucket