Logging implementation basics

This commit is contained in:
max 2025-02-01 01:23:38 +01:00
parent 37bdf7ad12
commit 3075902140
3 changed files with 28 additions and 2 deletions

View File

@ -1,3 +1,6 @@
{
"task.problemMatchers.neverPrompt": true
"task.problemMatchers.neverPrompt": true,
"files.associations": {
"log.h": "c"
}
}

View File

@ -1,6 +1,21 @@
#ifndef LOG_H
#define LOG_H
typedef enum log_severity
{
Verbose,
Debug,
Info,
Warning,
Error,
Fatal
} LogSeverity;
struct log_info
{
LogSeverity serverity;
char* message;
};
#endif //LOG_H

View File

@ -1,2 +1,10 @@
#include "netex.h"
#include "log.h"
void initialize_logger(void)
{
// Setup outputs (file, console)
// Create log queue
// Create log thread
// Start log thread
}