Files
oatmeal/examples/logging/main.cpp
firewire 14b4e60d3a
Some checks failed
Build / Build (push) Failing after 2m8s
examples - comments
2026-04-12 23:42:15 -04:00

24 lines
894 B
C++

// 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 <cstdint>
#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;
}