#includeint main() { cpplogs::channel::Todo logger; logger.debug("debug message"); logger.info("info message"); logger.warning("warning message"); logger.error("error message"); logger.critical("critical message"); return 0; }
#includeint main() { cpplogs::channel::Todo logger; logger.setLogLevel(cpplogs::LogLevel::Warning); logger.debug("debug message"); // will not be printed logger.info("info message"); // will not be printed logger.warning("warning message"); // will be printed logger.error("error message"); // will be printed logger.critical("critical message"); // will be printed return 0; }
#includeThe cpp logs channel todo package library is cpplogs.int main() { cpplogs::channel::Todo logger; logger.setLogFile("debug_log.txt"); logger.debug("debug message"); logger.info("info message"); logger.warning("warning message"); logger.error("error message"); logger.critical("critical message"); return 0; }