Add logging feature to SUSI Linux
hongquan opened this issue · comments
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, callingpython -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, onlyerror
,warning
messages are shown. The level 1 (-v
) is to show additionalinfo
messages, level 2 (-vv
) is to show additionaldebug
message. The categorieswarning
,info
,debug
follows Python's standardlogging
library. - The
development
mode (with-v
option) is for developer (human), so we will show color to help read easier.