Got a very basic logger up and working. Can be used with the Q[LEVEL]
macros. Still needs some work to add coloring to the console and to be
able to write logs out to files.
This commit is contained in:
2024-02-10 09:50:02 -05:00
parent abbceb3443
commit 16e45e4675
4 changed files with 86 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#include <defines.h>
#include <logger/logger.h>
#include <memory/zone.h>
#include <stdio.h>
@@ -12,6 +13,12 @@ int main() {
printf("Size of f32: %lu\n", sizeof(f32));
printf("Size of f64: %lu\n", sizeof(f64));
QFATAL("Test");
QERROR("Test");
QWARN("Test");
QINFO("Test");
QDEBUG("Test");
printf("\nCreating new zone 4K in size...\n");
Zone *test_zone = zoneCreate(4096);