mirror of
https://github.com/hmaxnl/netex.git
synced 2025-02-22 21:55:02 +01:00
Logging implementation basics
This commit is contained in:
parent
37bdf7ad12
commit
3075902140
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -1,3 +1,6 @@
|
|||
{
|
||||
"task.problemMatchers.neverPrompt": true
|
||||
"task.problemMatchers.neverPrompt": true,
|
||||
"files.associations": {
|
||||
"log.h": "c"
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,10 @@
|
|||
#include "netex.h"
|
||||
#include "log.h"
|
||||
#include "log.h"
|
||||
|
||||
void initialize_logger(void)
|
||||
{
|
||||
// Setup outputs (file, console)
|
||||
// Create log queue
|
||||
// Create log thread
|
||||
// Start log thread
|
||||
}
|
Loading…
Reference in New Issue
Block a user