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

Logging, color and usage #80

Merged
merged 4 commits into from
May 22, 2017
Merged

Logging, color and usage #80

merged 4 commits into from
May 22, 2017

Conversation

efiop
Copy link
Contributor

@efiop efiop commented May 22, 2017

This pull request fixes usage output, replaces our print's with standard logging module, colorizes output and adds --verbose and --quiet options for cmdline.

efiop added 4 commits May 21, 2017 03:33
There is no need to keep our own implementation, as we have
more versatile cross-platform standard module for it.
For now just replacing Logger class guts with redirects to
'logging' module, and writing everything into single logging
instance.
These are cmdline shortcuts to change dvc's verbosity
without fiddling around with loglevel in dvc.conf.
Both are added and handled as a common options for
all dvc commands in base cmd class.
Colors help readability, especially in verbose mode.
Current color map:

	Debug:   Blue
	Info:    White
	Warning: Yellow
	Error:   Red
Copy link
Member

@dmpetrov dmpetrov left a comment

Choose a reason for hiding this comment

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

👍

@efiop efiop merged commit c8bdb12 into iterative:master May 22, 2017
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.

None yet

2 participants