1 #include "log.h" 2 3 #define CATMODULE "test" 4 5 #define LOG_ERR(x, y, z...) log_write(x, 1, CATMODULE "/" __FUNCTION__, y, ##z) 6 7 main(void)8int main(void) 9 { 10 int lid; 11 12 log_initialize(); 13 14 lid = log_open("test.log"); 15 16 LOG_ERR(lid, "The log id is %d, damnit...", lid); 17 18 log_close(lid); 19 20 log_shutdown(); 21 } 22