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

Deprecate EventLogging and Warning* functions #62

Merged
merged 3 commits into from
Jul 3, 2019
Merged

Conversation

Kubuxu
Copy link
Member

@Kubuxu Kubuxu commented Jul 3, 2019

This is first set toward migrating this pacakage away from event logging and
toward Zap.

The aim is for this pacakge to be a manager for Zap loggers.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
@Kubuxu Kubuxu requested review from Stebalien, frrist and hsanjuan and removed request for Stebalien and frrist July 3, 2019 12:37
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

(I really wish we could just use one logger everywhere so we could associate events with logs... but oh well).

log.go Outdated
@@ -41,6 +43,9 @@ type StandardLogger interface {
type EventLogger interface {
StandardLogger

Warn(args ...interface{})
Copy link
Member

Choose a reason for hiding this comment

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

Why did we move these?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't require them on StandardLogger as why/log doesn't implement them.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
@Kubuxu
Copy link
Member Author

Kubuxu commented Jul 3, 2019

I figured out how to make the interface nicer.

@Kubuxu
Copy link
Member Author

Kubuxu commented Jul 3, 2019

With Zap we can switch Event logs to structured logs.

@Kubuxu Kubuxu requested a review from Stebalien July 3, 2019 13:59
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Code looks good to me, not sure why CI is failing.

@Kubuxu
Copy link
Member Author

Kubuxu commented Jul 3, 2019

I can't reproduce it.

@Kubuxu Kubuxu merged commit 9af13b2 into master Jul 3, 2019
@Kubuxu Kubuxu deleted the feat/deprecate branch July 3, 2019 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants