#ifndef LOGGER_H #define LOGGER_H #include #include #include #include #include enum LOGLEVEL { QUIET, ERROR, WARN, INFO, DEBUG, TRACE }; struct logger_properties{ enum LOGLEVEL level; FILE *__restrict__ dst; }; void init_logger(FILE *__restrict__ dst, enum LOGLEVEL level); enum LOGLEVEL get_loglevel(const char *level); void logprint(enum LOGLEVEL level, char *msg, ...); #endif