logger.h
provides a simple logging utility with different logging levels: DEBUG, INFO, and ERROR.
-
Include the header:
#include "logger.h"
-
Log messages using macros:
LOG_DEBUG("Debug message"); LOG_INFO("Info message"); LOG_ERROR("Error message");
-
Set the log level:
Logger::getInstance().setLogLevel(LogLevel::INFO);