A very basic header only C/C++ logging library.
- Multiple types and levels of log messages.
- Log time, file and line number.
Include CppLog.h and directly use the functions
LOG_DEBUG("Test");
LOG_INFO("Test");
LOG_WARNING("Test");
LOG_ERROR("Test");
LOG_CRITICAL("Test");
ASSERT(condition, "Test");
You can also define your preffered log level
#define LOG_LEVEL DEBUG_LEVEL
#define LOG_LEVEL INFO_LEVEL
#define LOG_LEVEL WARNING_LEVEL
#define LOG_LEVEL ERROR_LEVEL
#define LOG_LEVEL CRITICAL_LEVEL
#define LOG_LEVEL ASSERT_LEVEL
for a better understanding see Example.cpp
- Logging to a file