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

Use colors for logging. #474

Merged
merged 4 commits into from Apr 19, 2016

Conversation

kyrofa
Copy link
Contributor

@kyrofa kyrofa commented Apr 19, 2016

This fixes LP: #1572186 by using the following colors:

  • INFO: Green
  • WARNING: Yellow
  • ERROR: Dark red
  • CRITICAL: Light red

This uses the following colors:

  - INFO: Green
  - WARNING: Yellow
  - ERROR: Dark red
  - CRITICAL: Light red

LP: #1572186

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
'\x1b[1m'
'Login {}.'.format(result) +
'\x1b[0m\r\n')
process.expect_exact('Login {}.'.format(result))

def logout(self):
output = self.run_snapcraft('logout')
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a lot better, thanks.

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
@come-maiz
Copy link
Contributor

👍
just a complaint about the var names of the constants.

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
@sergiusens sergiusens merged commit 675d200 into canonical:master Apr 19, 2016
@kyrofa kyrofa deleted the bugfix/1572186/use_colors branch April 19, 2016 21:00
kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017
This uses the following colors:

  - INFO: Green
  - WARNING: Yellow
  - ERROR: Dark red
  - CRITICAL: Light red

LP: #1572186

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
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

3 participants