python code.
import google.cloud.logging client = google.cloud.logging.Client.from_service_account_json("file.config") client.setup_logging(