Skip to content
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

Add 'Sink.create' API wrapper and 'Client.sink' factory. #1596

Merged
merged 1 commit into from
Mar 11, 2016
Merged

Add 'Sink.create' API wrapper and 'Client.sink' factory. #1596

merged 1 commit into from
Mar 11, 2016

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Mar 10, 2016

This PR punts on any answer to #1591.

@tseaver tseaver added the api: logging Issues related to the Cloud Logging API. label Mar 10, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 10, 2016
@@ -53,3 +54,22 @@ def logger(self, name):
:returns: Logger created with the current client.
"""
return Logger(name, client=self)

def sink(self, name, filter_, destination):
"""Creates a sink bound to the current client.

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Mar 11, 2016

Mostly looks good but

  • I don't know enough about what's being done to say LGTM
  • Merge conflicts

@@ -56,6 +57,7 @@ def logger(self, name):
"""
return Logger(name, client=self)

<<<<<<< HEAD

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Mar 11, 2016

LGTM pending Travis. Squash if it pleases you.

I have found it quite easy in my workflow to do:

$ git checkout branch-working-on
$ git reset HEAD^
$ # Repeat for as many commits need to be squashed
$ git add -p .  # I make sure I am adding the right stuff
$ git commit --amend  # Just save it

and then the amend will add back the staged contents to the original base commit.

@tseaver
Copy link
Contributor Author

tseaver commented Mar 11, 2016

Squashed. I will merge after Travis passes.

@tseaver
Copy link
Contributor Author

tseaver commented Mar 11, 2016

I've been using git rebase -i <target branch> to fixup/squash/reword commit history.

tseaver added a commit that referenced this pull request Mar 11, 2016
Add 'Sink.create' API wrapper and 'Client.sink' factory.
@tseaver tseaver merged commit 6f3d1a7 into googleapis:logging-api Mar 11, 2016
@tseaver tseaver deleted the logging-sink_create branch March 11, 2016 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants