/* * File: bronx_log.h * Author: root * * Created on October 10, 2007, 11:48 AM */ #ifndef _BRONX_LOG_H #define _BRONX_LOG_H #ifdef __cplusplus extern "C" { #endif #define BRONX_LOGGING_NONE 0 #define BRONX_LOGGING_NORMAL 1 #define BRONX_LOGGING_DEBUG 2 #define NSLOG_RUNTIME_ERROR 1 #define NSLOG_RUNTIME_WARNING 2 #define NSLOG_VERIFICATION_ERROR 4 #define NSLOG_VERIFICATION_WARNING 8 #define NSLOG_CONFIG_ERROR 16 #define NSLOG_CONFIG_WARNING 32 #define NSLOG_PROCESS_INFO 64 #define NSLOG_EVENT_HANDLER 128 /*#define NSLOG_NOTIFICATION 256*/ /* NOT USED ANYMORE - CAN BE REUSED */ #define NSLOG_EXTERNAL_COMMAND 512 #define NSLOG_HOST_UP 1024 #define NSLOG_HOST_DOWN 2048 #define NSLOG_HOST_UNREACHABLE 4096 #define NSLOG_SERVICE_OK 8192 #define NSLOG_SERVICE_UNKNOWN 16384 #define NSLOG_SERVICE_WARNING 32768 #define NSLOG_SERVICE_CRITICAL 65536 #define NSLOG_PASSIVE_CHECK 131072 #define NSLOG_INFO_MESSAGE 262144 #define NSLOG_HOST_NOTIFICATION 524288 #define NSLOG_SERVICE_NOTIFICATION 1048576 extern apr_status_t log_init(); extern void bronx_log(char *msg, int level); extern void bronx_logprintf(int level, char *format_string, ...); extern int nagios_level(int); extern void log_setlevel(int); #ifdef __cplusplus } #endif #endif /* _BRONX_LOG_H */