Add a class Logger to manage the switch between PC debugging and classical serial monitor debugging