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

Unify output stream handling #96

Open
bkircher opened this issue Nov 29, 2020 · 1 comment
Open

Unify output stream handling #96

bkircher opened this issue Nov 29, 2020 · 1 comment

Comments

@bkircher
Copy link
Contributor

Sometimes we print with fmt. and sometimes it is log.. Maybe redirect to whatever cobra offers here. Anyway, kind of in-transparent. Clean this up.

@JanLukasGithub
Copy link
Contributor

The problem is that there are two different types of output: logging and user output. When fmt. is used, it's for data like object uuids and such, and when log. is used, it's for logging/informational messages. The logging library doesn't support important parts of data output like printing regardless of logging level, and fmt doesn't support important logging features like logging levels

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

No branches or pull requests

2 participants