Logging
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user