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

Add logging feature to SUSI Linux #423

Closed
hongquan opened this issue Dec 9, 2018 · 0 comments · Fixed by #435
Closed

Add logging feature to SUSI Linux #423

hongquan opened this issue Dec 9, 2018 · 0 comments · Fixed by #435

Comments

@hongquan
Copy link
Member

hongquan commented Dec 9, 2018

SUSI Linux currently lacks logging, which make difficult to debug.

My plan is:

  • Add v option to command line, to increase "verbosity" when needed. For example, calling python -m main -v will make SUSI Linux throw more log messages.
  • There are 3 levels of log. The level 0 (no v option) is to run SUSI in "production" mode, only error, warning messages are shown. The level 1 (-v) is to show additional info messages, level 2 (-vv) is to show additional debug message. The categories warning, info, debug follows Python's standard logging library.
  • The development mode (with -v option) is for developer (human), so we will show color to help read easier.
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 a pull request may close this issue.

1 participant