Files
liblogging/examples/simple.cpp
Emily Boudreaux 888d44cec1 build(wasm): liblogging now builds for wasm
Further, due to limitations of file system access on wasm, liblogging now outputs all logs to the console syncronously
2025-12-03 10:46:29 -05:00

17 lines
383 B
C++

#include <string>
#include <iostream>
#include "quill/LogMacros.h"
#include "fourdst/logging/logging.h"
int main() {
auto& logManager = fourdst::logging::LogManager::getInstance();
quill::Logger* logger = logManager.newFileLogger("test.log", "logger");
std::cout << "Logging...\n";
LOG_INFO(logger, "This is an info message: {}", 42);
std::cout << "Done Logging\n";
}