2018-11-02 07:20:04 -04:00
|
|
|
#include <igloo/log.h>
|
2001-09-09 22:24:39 -04:00
|
|
|
|
|
|
|
#define CATMODULE "test"
|
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
#define LOG_ERR(x, y, z...) igloo_log_write(x, 1, CATMODULE "/" __FUNCTION__, y, ##z)
|
2001-09-09 22:24:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2003-03-14 21:10:19 -05:00
|
|
|
int lid;
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
igloo_log_initialize();
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
lid = igloo_log_open("test.log");
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2003-03-14 21:10:19 -05:00
|
|
|
LOG_ERR(lid, "The log id is %d, damnit...", lid);
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
igloo_log_close(lid);
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2018-10-12 06:55:24 -04:00
|
|
|
igloo_log_shutdown();
|
2001-09-09 22:24:39 -04:00
|
|
|
}
|