// Logging // This program is just to test out/show any new features I add to the shared/logging.h file. // It is mostly a wrapper around spdlog, nothing fancy at all. // The code should be self explanatory enough so I'm not going to bother commenting everything out. // - Firewire #include #include "shared/logger.h" int main() { OatmealUtils::initLogging(); OatmealUtils::createLogger("logger", nullptr); OatmealUtils::getLogger("logger")->debug("This is a debug message!"); OatmealUtils::getLogger("logger")->info("This is an info message!"); OatmealUtils::getLogger("logger")->warn("This is a warning message!"); OatmealUtils::getLogger("logger")->critical("This is a critical message!"); uint32_t a = 5; std::string b = "Test string arg!"; OatmealUtils::getLogger("logger")->info("String arg: {} uint32_t args: {}", b, a); return 0; }