A logger in cpp