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

breaks out output logger into standard interface #160

Merged
merged 2 commits into from
Aug 4, 2019

Conversation

brendanjryan
Copy link
Contributor

Breaks out the existing "output logging" logic used in kubeval into its own interface. This interface will be used for adding multiple "output options" to kubeval in the future.

Because of our reliance on global loggers (fmt) and the colors library - which also makes heavy use of global variables - this code is a little difficult to test in its current implementation. We would need to migrate completely away from colors and inject our own logger (to trap the output) which is far beyond this scope of this PR.

@brendanjryan
Copy link
Contributor Author

@garethr does this look ok?

It seems like i'm unable to assign you as a code reviewer 🙆‍♂

@garethr garethr merged commit 2e4542b into instrumenta:master Aug 4, 2019
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