18 lines
581 B
C++
18 lines
581 B
C++
#include <cstdint>
|
|
#include "shared/logger.h"
|
|
|
|
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!");
|
|
uint32_t a = 5;
|
|
std::string b = "Test string arg!";
|
|
OatmealUtils::get("logger")->info("String arg: {} uint32_t args: {}", b, a);
|
|
|
|
return 0;
|
|
}
|