Add debug, info, warning, critical messages throughout the code
Look at the following link as a reference.
#8 Updated by Iker de Icaza Astiz 6 months ago
feature/logging_levels enables support to output different levels of messages to the terminal. Namely, DEBUG, INFO, WARNING, CRITICAL and FATAL.
An adequate colourful format has been put in place in revision 60e6b5d.
Revision bfe2451 shows how to write each level.
By default debug messages won't be shown, to have debug messaging you need to comment line
add_definitions(-DQT_NO_DEBUG_OUTPUT) # comment to have debug messages printed