diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-04 22:05:06 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-04 22:05:06 +0200 |
commit | f3ba19b162a89b2081c0598b4a0bf126146e3671 (patch) | |
tree | e6c82af3ad5c7ea5e11aa6381822bfc8e68dd5fd /main | |
parent | 3320960992afe36f4b6306130c6327e084c381b2 (diff) |
Add logging system
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <deimos/core/api_registry.h>
-#include <deimos/core/os.h>
-#include <deimos/core/format.h>
+#include <deimos/core/log.h>
using namespace deimos;
int main(int /* argc */, char* /* argv */[])
{
auto* api_registry = InitializeGlobalApiRegistry();
- auto* os_api = api_registry->Get<OsApi>();
+ auto* log_api = api_registry->Get<LogApi>();
- 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;
}
|