This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user