I removed the msg function to use logging module.
The main logical change is a personnal Formatter to display color. Except this, it is mainly code translation.
The code must have exactly the same comportment.
Now, some improvements can be made.
change information level. Most of messages can be considered as debug information, and should be shown with verbosity=high. Verbosity=none should shown only warnings and higher
auto color based on log level : all warnings may be red, all infos white and the remaining without color. So we could remove the color reference in the log functions and the color will be put automatically.
change Formatter for log file. Since there is no color in log files, we could change the formatter to change the log level in log files.
I removed the msg function to use logging module. The main logical change is a personnal Formatter to display color. Except this, it is mainly code translation.
The code must have exactly the same comportment.
Now, some improvements can be made.