tracevis
tracevis copied to clipboard
Feature/logger
print messages are converted to logger messages
we now have --log
CLI parameter which defaults to debug
and prints all messages
- Obvious
error
andwarning
messages are in correct level. - Packet details are in
debug
level - decoratives, informatives and Morse codes are in
info
level (Cleanup and enhancements are required)
Also current message format is %(message)s
so only the message itself is logged; we need to categorize sections/modules/functions and decide for a appropriate message format (time, section, level, message, ...)
Should we change the --log {critical,error,warning,info,debug}
behavior to something like -v
for warning
, -vv
for info
and -vvv
for debug
?
This seems simpler
-vvv
seems more idiomatic, thanks a lot!
-vvv
seems more idiomatic, thanks a lot!
Now -v
, -vv
and -vvv
are available for warinig
, info
, debug
levels and default verbosity is error