From f3ba19b162a89b2081c0598b4a0bf126146e3671 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 4 Apr 2024 22:05:06 +0200 Subject: Add logging system --- main/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main/main.cpp') diff --git a/main/main.cpp b/main/main.cpp index 10a7dc4..03c2097 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1,16 +1,16 @@ #include -#include -#include +#include using namespace deimos; int main(int /* argc */, char* /* argv */[]) { auto* api_registry = InitializeGlobalApiRegistry(); - auto* os_api = api_registry->Get(); + auto* log_api = api_registry->Get(); - OsConsoleWriter writer(os_api->console, OsConsoleType::kStdOut); - Format(&writer, "Hello, $!", "world"); + log_api->LogInfo("Hello, world!"); + log_api->LogDebug("Hello, $!", "world"); + log_api->LogError("This is an error OMG $ $ $", 1, 2, 3); return 0; } -- cgit