Go to the source code of this file.
Defines |
#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_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 |
#define | DEBUGL_ALL -1 |
#define | DEBUGL_NONE 0 |
#define | DEBUGL_FUNCTIONS 1 |
#define | DEBUGL_CONFIG 2 |
#define | DEBUGL_PROCESS 4 |
#define | DEBUGL_STATUSDATA 4 |
#define | DEBUGL_RETENTIONDATA 4 |
#define | DEBUGL_EVENTS 8 |
#define | DEBUGL_CHECKS 16 |
#define | DEBUGL_IPC 16 |
#define | DEBUGL_FLAPPING 16 |
#define | DEBUGL_EVENTHANDLERS 16 |
#define | DEBUGL_PERFDATA 16 |
#define | DEBUGL_NOTIFICATIONS 32 |
#define | DEBUGL_EVENTBROKER 64 |
#define | DEBUGL_EXTERNALCOMMANDS 128 |
#define | DEBUGL_COMMANDS 256 |
#define | DEBUGL_DOWNTIME 512 |
#define | DEBUGL_COMMENTS 1024 |
#define | DEBUGL_MACROS 2048 |
#define | DEBUGV_BASIC 0 |
#define | DEBUGV_MORE 1 |
#define | DEBUGV_MOST 2 |
Functions |
void | logit (int, int, const char *,...) __attribute__((__format__(__printf__ |
void int | log_debug_info (int, int, const char *,...) __attribute__((__format__(__printf__ |
void int int | write_to_all_logs (char *, unsigned long) |
int | write_to_log (char *, unsigned long, time_t *) |
int | write_to_syslog (char *, unsigned long) |
int | log_service_event (service *) |
int | log_host_event (host *) |
int | log_host_states (int, time_t *) |
int | log_service_states (int, time_t *) |
int | rotate_log_file (time_t) |
int | write_log_file_info (time_t *) |
int | open_debug_log (void) |
int | close_debug_log (void) |
Define Documentation
#define DEBUGL_COMMANDS 256 |
#define DEBUGL_COMMENTS 1024 |
#define DEBUGL_DOWNTIME 512 |
#define DEBUGL_EVENTBROKER 64 |
#define DEBUGL_EVENTHANDLERS 16 |
#define DEBUGL_EXTERNALCOMMANDS 128 |
#define DEBUGL_FLAPPING 16 |
#define DEBUGL_FUNCTIONS 1 |
#define DEBUGL_MACROS 2048 |
#define DEBUGL_NOTIFICATIONS 32 |
#define DEBUGL_PERFDATA 16 |
#define DEBUGL_RETENTIONDATA 4 |
#define DEBUGL_STATUSDATA 4 |
#define NSLOG_CONFIG_ERROR 16 |
#define NSLOG_CONFIG_WARNING 32 |
#define NSLOG_EVENT_HANDLER 128 |
#define NSLOG_EXTERNAL_COMMAND 512 |
#define NSLOG_HOST_DOWN 2048 |
#define NSLOG_HOST_NOTIFICATION 524288 |
#define NSLOG_HOST_UNREACHABLE 4096 |
#define NSLOG_HOST_UP 1024 |
#define NSLOG_INFO_MESSAGE 262144 |
#define NSLOG_PASSIVE_CHECK 131072 |
#define NSLOG_PROCESS_INFO 64 |
#define NSLOG_RUNTIME_ERROR 1 |
#define NSLOG_RUNTIME_WARNING 2 |
#define NSLOG_SERVICE_CRITICAL 65536 |
#define NSLOG_SERVICE_NOTIFICATION 1048576 |
#define NSLOG_SERVICE_OK 8192 |
#define NSLOG_SERVICE_UNKNOWN 16384 |
#define NSLOG_SERVICE_WARNING 32768 |
#define NSLOG_VERIFICATION_ERROR 4 |
#define NSLOG_VERIFICATION_WARNING 8 |
Function Documentation
int close_debug_log |
( |
void |
| ) |
|
void int log_debug_info |
( |
int |
, |
|
|
int |
, |
|
|
const char * |
, |
|
|
|
... |
|
) |
| |
int log_host_event |
( |
host * |
| ) |
|
int log_host_states |
( |
int |
, |
|
|
time_t * |
|
|
) |
| |
int log_service_event |
( |
service * |
| ) |
|
int log_service_states |
( |
int |
, |
|
|
time_t * |
|
|
) |
| |
void logit |
( |
int |
, |
|
|
int |
, |
|
|
const char * |
, |
|
|
|
... |
|
) |
| |
int open_debug_log |
( |
void |
| ) |
|
int rotate_log_file |
( |
time_t |
| ) |
|
int write_log_file_info |
( |
time_t * |
| ) |
|
void int int write_to_all_logs |
( |
char * |
, |
|
|
unsigned |
long |
|
) |
| |
int write_to_log |
( |
char * |
, |
|
|
unsigned |
long, |
|
|
time_t * |
|
|
) |
| |
int write_to_syslog |
( |
char * |
, |
|
|
unsigned |
long |
|
) |
| |