Simple logger in cpp