Update logging to also print to stdout + replace printf to logging.
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
#ifndef LOG_H
|
||||
#define LOG_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef enum {
|
||||
LOG_INFO,
|
||||
LOG_WARNING,
|
||||
@@ -14,6 +10,6 @@ typedef enum {
|
||||
|
||||
const char* get_current_time();
|
||||
|
||||
void log_message(LogLevel level, const char* message);
|
||||
void log_message(LogLevel level, const char* format, ...);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user