Skip to content

Commit

Permalink
docs: add initialization of LogEntry instance in the v2 example
Browse files Browse the repository at this point in the history
  • Loading branch information
ymotongpoo committed Jun 29, 2020
1 parent 6dde25e commit 11a5a7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 11a5a7b

Please sign in to comment.