#ifndef LOG_H #define LOG_H enum LogLevel { ERROR = 0, WARN = 1, INFO = 2, DEBUG = 3 }; void log(LogLevel level, const char *format, ...); void error(const char *format, ...); void warn(const char *format, ...); void info(const char *format, ...); void debug(const char *format, ...); #endif