1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef __PRINTX_H__ #define __PRINTX_H__ #include <stdbool.h> typedef enum { ERROR, WARNING, INFO, DEBUG }severity; bool initLog(); void printx(severity, char*, ...); void closeLog(); #endif