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 support for logr #37

Merged
merged 11 commits into from
Jan 25, 2019
Merged

Conversation

dims
Copy link
Member

@dims dims commented Jan 25, 2019

What this PR does / why we need it:

We have libraries like k8s.io/utils that need logging, we should have a way to use the logr in these scenarios. For example see kubernetes/utils#70

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

Now supports github.com/go-logr/logr based interfaces backed by klog

thockin and others added 10 commits August 21, 2016 21:07
Change-Id: I92207e2ca9bbd88a8780912a3aef297685c917f6
Change-Id: I3117562d1eecee175ac06443a79b717296f6149e
Change-Id: I813d542005959293327057ff3ddf81da4e454581
Change-Id: Ia25673d014bcfc1f23aee7cb4856e1e24cba02fb
Change-Id: I4e2c5a7ff5b2526bafac0cd17836b3377a91339d
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 25, 2019
@dims
Copy link
Member Author

dims commented Jan 25, 2019

/assign @thockin

@dims
Copy link
Member Author

dims commented Jan 25, 2019

/assign @vincepri @thockin @DirectXMan12

@dims
Copy link
Member Author

dims commented Jan 25, 2019

/hold

(for discussion)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2019
@neolit123
Copy link
Member

neolit123 commented Jan 25, 2019

cc @munnerz
FYI

@k8s-ci-robot k8s-ci-robot assigned munnerz and unassigned munnerz Jan 25, 2019
klogr/klogr.go Outdated
"k8s.io/klog"
)

// New returns a logr.Logger which is implemented by glog.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/glog/klog

klogr/klogr.go Outdated
return new
}

// WithName returns a new logr.Logger with the specified name appended. glogr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/glog/klog

Change-Id: Ie02835fa7e1fb01ccfe64deb30a414cabae70067
Copy link
Member

@thockin thockin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 25, 2019
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thockin
Copy link
Member

thockin commented Jan 25, 2019

Do we need the hold?

@dims
Copy link
Member Author

dims commented Jan 25, 2019

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5a3af3e into kubernetes:master Jan 25, 2019
1978629634 pushed a commit to 1978629634/klog that referenced this pull request Apr 3, 2024
Just a tiny bit nicer to read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants