base/logging.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/statusdata.h"
#include "../include/macros.h"
#include "../include/icinga.h"
#include "../include/broker.h"

Functions

static int soft_lock (pthread_mutex_t *lock)
static void write_to_console (char *buffer)
static void write_to_logs_and_console (char *buffer, unsigned long data_type, int display)
void logit (int data_type, int display, const char *fmt,...)
int write_to_all_logs (char *buffer, unsigned long data_type)
static void write_to_all_logs_with_timestamp (char *buffer, unsigned long data_type, time_t *timestamp)
int write_to_log (char *buffer, unsigned long data_type, time_t *timestamp)
int write_to_syslog (char *buffer, unsigned long data_type)
int log_service_event (service *svc)
int log_host_event (host *hst)
int log_host_states (int type, time_t *timestamp)
int log_service_states (int type, time_t *timestamp)
int rotate_log_file (time_t rotation_time)
int write_log_file_info (time_t *timestamp)
int open_debug_log (void)
int close_debug_log (void)
int log_debug_info (int level, int verbosity, const char *fmt,...)

Variables

char * log_file
char * temp_file
char * log_archive_path
hosthost_list
serviceservice_list
int use_daemon_log
int use_syslog
int use_syslog_local_facility
int syslog_local_facility
int log_service_retries
int log_initial_states
int log_current_states
int log_long_plugin_output
unsigned long logging_options
unsigned long syslog_options
int verify_config
int test_scheduling
time_t last_log_rotation
int log_rotation_method
int daemon_mode
char * debug_file
int debug_level
int debug_verbosity
unsigned long max_debug_file_size
FILE * debug_file_fp = NULL
static pthread_mutex_t debug_fp_lock

Function Documentation

int close_debug_log ( void   ) 

int log_debug_info ( int  level,
int  verbosity,
const char *  fmt,
  ... 
)

int log_host_event ( host hst  ) 

int log_host_states ( int  type,
time_t *  timestamp 
)

int log_service_event ( service svc  ) 

int log_service_states ( int  type,
time_t *  timestamp 
)

void logit ( int  data_type,
int  display,
const char *  fmt,
  ... 
)

int open_debug_log ( void   ) 

int rotate_log_file ( time_t  rotation_time  ) 

static int soft_lock ( pthread_mutex_t *  lock  )  [inline, static]

int write_log_file_info ( time_t *  timestamp  ) 

int write_to_all_logs ( char *  buffer,
unsigned long  data_type 
)

static void write_to_all_logs_with_timestamp ( char *  buffer,
unsigned long  data_type,
time_t *  timestamp 
) [static]

static void write_to_console ( char *  buffer  )  [static]

int write_to_log ( char *  buffer,
unsigned long  data_type,
time_t *  timestamp 
)

static void write_to_logs_and_console ( char *  buffer,
unsigned long  data_type,
int  display 
) [static]

int write_to_syslog ( char *  buffer,
unsigned long  data_type 
)


Variable Documentation

int daemon_mode

char* debug_file

FILE* debug_file_fp = NULL

pthread_mutex_t debug_fp_lock [static]

int debug_level

int debug_verbosity

host* host_list

time_t last_log_rotation

char* log_archive_path

int log_current_states

char* log_file

int log_initial_states

int log_long_plugin_output

int log_rotation_method

int log_service_retries

unsigned long logging_options

unsigned long max_debug_file_size

service* service_list

int syslog_local_facility

unsigned long syslog_options

char* temp_file

int test_scheduling

int use_daemon_log

int use_syslog

int use_syslog_local_facility

int verify_config


Generated on Wed Mar 30 17:22:22 2011 for icinga-core by  doxygen 1.4.7