-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add initialization of LogEntry instance in the v2 example #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add questions on the contents of the v2 example.
@@ -84,7 +84,9 @@ Using the API | |||
from google.cloud import logging_v2 | |||
|
|||
client = logging_v2.LoggingServiceV2Client() | |||
entries = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though this PR only changed the issue that the list entries
is empty, I think we need to add how to set resources
and log_name
. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be useful to have too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I added the note.
README.rst
Outdated
@@ -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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update "Text" to something more meaningful, like "this is a log statement"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the exact phrase :)
@simonz130 Thank you Simon for the check. I updated the pull request. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #44