diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -42,13 +42,18 @@ int main(int argc, char *argv[]) } */ dbg_status_t status = dbg_init(//DBG_FLAG_USE_MUTEX | - DBG_FLAG_OUTPUT_TO_FILE | + //DBG_FLAG_OUTPUT_TO_FILE | //DBG_FLAG_OUTPUT_TO_FD | - //DBG_FLAG_OUTPUT_TO_STDOUT | +// DBG_FLAG_OUTPUT_TO_STDOUT | + DBG_FLAG_OUTPUT_TO_SYSLOG | //DBG_FLAG_OUTPUT_TO_STDERR | 0, //DBG_OPTION_FD, fd, - DBG_OPTION_FILENAME, "/tmp/my2.log", +// DBG_OPTION_FILENAME, "", + DBG_OPTION_SYSLOG_HOST, + "127.0.0.1", + DBG_OPTION_SYSLOG_PORT, + 514, DBG_OPTION_END); if(status != DBG_STATUS_OK) { @@ -62,7 +67,5 @@ int main(int argc, char *argv[]) dbg_close(); - //close(fd); - return 0; } |