Prepare for a custom logger in degesch

This commit is contained in:
Přemysl Eric Janouch 2015-04-11 21:12:56 +02:00
parent 4d4bdc1e6a
commit 245ff38498
2 changed files with 8 additions and 5 deletions

View File

@ -22,11 +22,13 @@
#define LIBERTY_WANT_POLLER
#define LIBERTY_WANT_PROTO_IRC
#ifdef WANT_SYSLOG_LOGGING
#define print_fatal_data ((void *) LOG_ERR)
#define print_error_data ((void *) LOG_ERR)
#define print_warning_data ((void *) LOG_WARNING)
#define print_status_data ((void *) LOG_INFO)
#define print_debug_data ((void *) LOG_DEBUG)
#endif // WANT_SYSLOG_LOGGING
#include "liberty/liberty.c"
#include <arpa/inet.h>

1
kike.c
View File

@ -22,6 +22,7 @@
#undef PROGRAM_NAME
#define PROGRAM_NAME "kike"
#define WANT_SYSLOG_LOGGING
#include "common.c"
#include "kike-replies.c"
#include <nl_types.h>