examples - comments
Some checks failed
Build / Build (push) Failing after 2m8s

This commit is contained in:
2026-04-12 23:42:15 -04:00
parent fd35e93831
commit 14b4e60d3a
4 changed files with 47 additions and 14 deletions

View File

@@ -1,3 +1,9 @@
// 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"
@@ -5,13 +11,13 @@ int main() {
OatmealUtils::initLogging();
OatmealUtils::createLogger("logger", nullptr);
OatmealUtils::get("logger")->debug("This is a debug message!");
OatmealUtils::get("logger")->info("This is an info message!");
OatmealUtils::get("logger")->warn("This is a warning message!");
OatmealUtils::get("logger")->critical("This is a critical message!");
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::get("logger")->info("String arg: {} uint32_t args: {}", b, a);
OatmealUtils::getLogger("logger")->info("String arg: {} uint32_t args: {}", b, a);
return 0;
}