From 93f0e5c5d90b5dd1b5dc22a76594cf4514f3f20d Mon Sep 17 00:00:00 2001 From: Yoshi Yamaguchi <145104+ymotongpoo@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:48:05 +0900 Subject: [PATCH] Add initialization of LogEntry instance in the v2 example --- README.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 220a6cf17..59065c15a 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ Python Client for Stackdriver Logging ===================================== -|pypi| |versions| +|pypi| |versions| `Stackdriver Logging API`_: Writes log entries and manages your Stackdriver Logging configuration. @@ -84,7 +84,9 @@ Using the API from google.cloud import logging_v2 client = logging_v2.LoggingServiceV2Client() - entries = [] + e = logging_v2.types.LogEntry( + text_payload="text") + entries = [e] response = client.write_log_entries(entries) .. code:: python