Header file dealing with the corsaro logging sub-system. More...
Go to the source code of this file.
Functions | |
void | corsaro_log_va (const char *func, corsaro_t *corsaro, const char *format, va_list args) |
Write a formatted string to the logfile associated with an corsaro object. More... | |
void | corsaro_log (const char *func, corsaro_t *corsaro, const char *format,...) |
Write a formatted string to the logfile associated with an corsaro object. More... | |
void | corsaro_log_in (const char *func, corsaro_in_t *corsaro, const char *format,...) |
Write a formatted string to the logfile associated with an corsaro input object. More... | |
void | corsaro_log_file (const char *func, corsaro_file_t *logfile, const char *format,...) |
Write a formatted string to a generic log file. More... | |
int | corsaro_log_init (corsaro_t *corsaro) |
Initialize the logging sub-system for an corsaro output object. More... | |
int | corsaro_log_in_init (corsaro_in_t *corsaro) |
Initialize the logging sub-system for an corsaro input object. More... | |
void | corsaro_log_close (corsaro_t *corsaro) |
Close the log file for an corsaro output object. More... | |
void | corsaro_log_in_close (corsaro_in_t *corsaro) |
Close the log file for an corsaro input object. More... | |
Header file dealing with the corsaro logging sub-system.
Definition in file corsaro_log.h.
void corsaro_log | ( | const char * | func, |
corsaro_t * | corsaro, | ||
const char * | format, | ||
... | |||
) |
Write a formatted string to the logfile associated with an corsaro object.
func | The name of the calling function (func) |
corsaro | The corsaro output object to log for |
format | The printf style formatting string |
... | Variable list of arguments to the format string |
This function takes the same style of arguments that printf(3) does.
Definition at line 113 of file corsaro_log.c.
References corsaro_log_va().
Referenced by add_country(), add_prefix(), ascii_dump(), attack_vector_init(), attack_vector_is_attack(), binary_dump(), corsaro_alloc_output(), corsaro_anon_init_output(), corsaro_dos_end_interval(), corsaro_dos_init_output(), corsaro_dos_process_packet(), corsaro_dos_record_fprint(), corsaro_dos_start_interval(), corsaro_file_open(), corsaro_file_write_packet(), corsaro_filtergeo_init_output(), corsaro_filterpfx_init_output(), corsaro_finalize_output(), corsaro_flowtuple_end_interval(), corsaro_flowtuple_init_output(), corsaro_flowtuple_process_flowtuple(), corsaro_flowtuple_process_packet(), corsaro_flowtuple_record_fprint(), corsaro_flowtuple_start_interval(), corsaro_geo_init_provider(), corsaro_geodb_init_output(), corsaro_init(), corsaro_io_prepare_file_full(), corsaro_io_validate_template(), corsaro_io_write_record(), corsaro_packet_alloc(), corsaro_pcap_init_output(), corsaro_pcap_process_packet(), corsaro_pcap_start_interval(), corsaro_per_packet(), corsaro_pfx2as_close_output(), corsaro_pfx2as_init_output(), corsaro_plugin_enable_plugin(), corsaro_set_interval(), corsaro_set_interval_alignment(), corsaro_set_meta_output_rotation(), corsaro_set_monitorname(), corsaro_set_output_rotation(), corsaro_set_trace(), corsaro_set_traceuri(), corsaro_smee_init_output(), corsaro_smee_process_packet(), corsaro_smee_start_interval(), corsaro_start_output(), end_interval(), init_flowtuple(), init_trace(), main(), parse_args(), parse_blocks_cell(), parse_maxmind_location_row(), parse_netacq_edge_location_cell(), parse_netacq_edge_location_row(), per_interval_end(), per_interval_start(), process_corsaro(), process_generic(), process_packet(), process_trace(), read_blocks(), read_locations(), read_routeviews(), sort_hash(), and start_interval().
void corsaro_log_close | ( | corsaro_t * | corsaro | ) |
Close the log file for an corsaro output object.
corsaro | The corsaro output object to close logging for |
Definition at line 163 of file corsaro_log.c.
References corsaro_file_close(), and corsaro::logfile.
Referenced by corsaro_free(), and end_interval().
void corsaro_log_file | ( | const char * | func, |
corsaro_file_t * | logfile, | ||
const char * | format, | ||
... | |||
) |
Write a formatted string to a generic log file.
func | The name of the calling function (func) |
logfile | The file to log to (STDERR if NULL is passed) |
format | The printf style formatting string |
... | Variable list of arguments to the format string |
This function takes the same style of arguments that printf(3) does.
Definition at line 132 of file corsaro_log.c.
Referenced by add_inc_hash(), add_inc_map(), corsaro_dos_attack_vector_print(), corsaro_dos_record_print(), corsaro_flowtuple_add_inc(), corsaro_flowtuple_record_print(), corsaro_in_free_record(), and corsaro_plugin_enable_plugin().
void corsaro_log_in | ( | const char * | func, |
corsaro_in_t * | corsaro, | ||
const char * | format, | ||
... | |||
) |
Write a formatted string to the logfile associated with an corsaro input object.
func | The name of the calling function (func) |
corsaro | The corsaro input object to log for |
format | The printf style formatting string |
... | Variable list of arguments to the format string |
This function takes the same style of arguments that printf(3) does.
Definition at line 121 of file corsaro_log.c.
Referenced by corsaro_alloc_input(), corsaro_dos_init_input(), corsaro_dos_read_global_data_record(), corsaro_dos_read_record(), corsaro_flowtuple_init_input(), corsaro_flowtuple_read_record(), corsaro_in_alloc_record(), corsaro_in_free(), corsaro_in_init(), corsaro_io_read_header(), corsaro_io_read_interval_end(), corsaro_io_read_interval_start(), corsaro_io_read_trailer(), corsaro_pcap_read_record(), corsaro_smee_read_record(), corsaro_start_input(), is_plugin_data_or_interval(), is_trailer_or_interval(), read_attack_vector(), read_class_end(), read_class_start(), read_flowtuple(), read_header(), and read_record().
void corsaro_log_in_close | ( | corsaro_in_t * | corsaro | ) |
Close the log file for an corsaro input object.
corsaro | The corsaro output object to close logging for |
Definition at line 172 of file corsaro_log.c.
int corsaro_log_in_init | ( | corsaro_in_t * | corsaro | ) |
Initialize the logging sub-system for an corsaro input object.
corsaro | The corsaro object to associate the logger with |
Definition at line 156 of file corsaro_log.c.
Referenced by corsaro_in_init().
int corsaro_log_init | ( | corsaro_t * | corsaro | ) |
Initialize the logging sub-system for an corsaro output object.
corsaro | The corsaro object to associate the logger with |
Definition at line 141 of file corsaro_log.c.
References CORSARO_FILE_COMPRESS_NONE, CORSARO_FILE_MODE_ASCII, CORSARO_IO_LOG_NAME, corsaro_io_prepare_file_full(), corsaro::interval_start, and corsaro::logfile.
Referenced by corsaro_start_output(), and start_interval().
void corsaro_log_va | ( | const char * | func, |
corsaro_t * | corsaro, | ||
const char * | format, | ||
va_list | args | ||
) |
Write a formatted string to the logfile associated with an corsaro object.
func | The name of the calling function (func) |
corsaro | The corsaro output object to log for |
format | The printf style formatting string |
args | Variable list of arguments to the format string |
This function takes the same style of arguments that printf(3) does.
Definition at line 106 of file corsaro_log.c.
References corsaro::logfile.
Referenced by corsaro_log(), and smee_log_callback().