Logging & Debugging

gdt::logger

class gdt::logger

GDT provides a stream logger you can use just like you would use std::cout, with an added severity filtering functionality.

You don’t normally use the logger class directly. Instead, use the predefined macros (yes, unfortunately macros):

LOG_DEBUG << "your debug message " << "goes here..";
LOG_INFO << "your info message " << "goes here..";
LOG_WARNING << "your warning message " << "goes here..";
LOG_ERROR << "your error message " << "goes here..";