We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef457f commit 4395b35Copy full SHA for 4395b35
docs/logging-usage.rst
@@ -54,9 +54,9 @@ Write a dictionary entry to a logger.
54
>>> from google.cloud import logging
55
>>> client = logging.Client()
56
>>> logger = client.logger('log_name')
57
- >>> logger.log_struct(
58
- ... message="My second entry",
59
- ... weather="partly cloudy") # API call
+ >>> logger.log_struct({
+ ... 'message': 'My second entry',
+ ... 'weather': 'partly cloudy'}) # API call
60
61
62
Retrieving log entries
0 commit comments