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

pkg/logger: initial commit #9194

Merged
merged 1 commit into from
Jan 22, 2018
Merged

pkg/logger: initial commit #9194

merged 1 commit into from
Jan 22, 2018

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jan 22, 2018

Later to be used with "snapshot" and "clientv3" packages.

Separated from #9118.

@gyuho gyuho requested a review from xiang90 January 22, 2018 21:42
@xiang90
Copy link
Contributor

xiang90 commented Jan 22, 2018

lgtm

// plog := capnslog.NewPackageLogger("github.com/coreos/etcd", "snapshot")
// defaultLogger = NewPackageLogger(plog)
//
func NewPackageLogger(p *capnslog.PackageLogger) Logger {
Copy link
Contributor

Choose a reason for hiding this comment

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

probably do an assert that Logger satisfies grpc.Logger

Copy link
Contributor

Choose a reason for hiding this comment

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

/cc @gyuho

Copy link
Contributor

Choose a reason for hiding this comment

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

something like

var _ MyInterface = MyType{}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just added.

Later to be used with "snapshot" and "clientv3" packages.

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
@gyuho gyuho merged commit ea814d2 into etcd-io:master Jan 22, 2018
@gyuho gyuho deleted the logger branch January 22, 2018 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants