Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 93f0e5c

Browse filesBrowse files
committed
Add initialization of LogEntry instance in the v2 example
1 parent 6dde25e commit 93f0e5c
Copy full SHA for 93f0e5c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎README.rst

Copy file name to clipboardExpand all lines: README.rst
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Python Client for Stackdriver Logging
22
=====================================
33

4-
|pypi| |versions|
4+
|pypi| |versions|
55

66
`Stackdriver Logging API`_: Writes log entries and manages your Stackdriver
77
Logging configuration.
@@ -84,7 +84,9 @@ Using the API
8484
from google.cloud import logging_v2
8585
8686
client = logging_v2.LoggingServiceV2Client()
87-
entries = []
87+
e = logging_v2.types.LogEntry(
88+
text_payload="text")
89+
entries = [e]
8890
response = client.write_log_entries(entries)
8991
9092
.. code:: python

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.