7 #define LOG_EMERG_NAME "PANIC" 8 #define LOG_ALERT_NAME "ALERT" 9 #define LOG_CRIT_NAME "CRIT" 10 #define LOG_ERR_NAME "ERROR" 11 #define LOG_WARNING_NAME "WARN" 12 #define LOG_NOTICE_NAME "NOTICE" 13 #define LOG_INFO_NAME "INFO" 14 #define LOG_DEBUG_NAME "DEBUG" 16 #define LOG_ERROR LOG_ERR 25 #define output output1 30 #define error(...) output(LOG_ERR, __VA_ARGS__) 36 # define debug(...) output(LOG_DEBUG, __VA_ARGS__) 38 # define debug(...) emptyfunc() 43 # define _(string) gettext(string) 46 #define _OUTPUT_GET_CURRENT_VALUE 127 48 #define _OUTPUT_MODE_PRINT 1 49 #define _OUTPUT_MODE_SYSLOG 2 50 #define _OUTPUT_MODE_FILE 4 55 static inline void emptyfunc(
void) {
return; }
89 void output1(
int lvl,
const char *msg, ...) __attribute__ ((format (printf, 2, 3)));
int set_output_mode(int mode)
int set_output_file(FILE *out)
int set_output_level(int lvl)
void output1(int lvl, const char *msg,...) __attribute__((format(printf