2001-09-09 22:24:39 -04:00
|
|
|
#include "log.h"
|
|
|
|
|
|
|
|
#define CATMODULE "test"
|
|
|
|
|
|
|
|
#define LOG_ERR(x, y, z...) log_write(x, 1, CATMODULE "/" __FUNCTION__, y, ##z)
|
|
|
|
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2003-03-14 21:10:19 -05:00
|
|
|
int lid;
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2003-03-14 21:10:19 -05:00
|
|
|
log_initialize();
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2003-03-14 21:10:19 -05:00
|
|
|
lid = 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
|
|
|
|
2003-03-14 21:10:19 -05:00
|
|
|
log_close(lid);
|
2001-09-09 22:24:39 -04:00
|
|
|
|
2003-03-14 21:10:19 -05:00
|
|
|
log_shutdown();
|
2001-09-09 22:24:39 -04:00
|
|
|
}
|