15 lines
227 B
C
15 lines
227 B
C
// Chat GPT code
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef enum {
|
|
LOG_INFO,
|
|
LOG_WARNING,
|
|
LOG_ERROR
|
|
} LogLevel;
|
|
|
|
const char* get_current_time();
|
|
|
|
void log_message(LogLevel level, const char* message);
|