2024-10-10 20:11:57 +08:00
|
|
|
// Chat GPT code
|
2024-10-13 22:43:33 +08:00
|
|
|
#ifndef LOG_H
|
|
|
|
#define LOG_H
|
|
|
|
|
2024-10-10 20:11:57 +08:00
|
|
|
typedef enum {
|
|
|
|
LOG_INFO,
|
|
|
|
LOG_WARNING,
|
|
|
|
LOG_ERROR
|
|
|
|
} LogLevel;
|
|
|
|
|
|
|
|
const char* get_current_time();
|
|
|
|
|
2024-10-15 01:36:02 +08:00
|
|
|
void log_message(LogLevel level, const char* format, ...);
|
2024-10-13 22:43:33 +08:00
|
|
|
|
|
|
|
#endif
|