#include <stdio.h>#include <time.h>#include <stdarg.h>#include <string.h>#include <stdlib.h>#include <cybergarage/util/clog.h>Data Structures | |
| struct | fd_list |
Functions | |
| static void | log_init_with_defaults () |
| static const char * | map_severity (int severity) |
| int | cg_log_add_target (char *target, int mask) |
| int | cg_log_clear_targets () |
| void | cg_log_set_separator (char *s) |
| void | cg_log_print (int severity, const char *file, int line_n, const char *function, const char *format,...) |
Variables | |
| static const char * | sev_error_s = SEV_ERROR_S |
| static const char * | sev_warning_s = SEV_WARNING_S |
| static const char * | sev_info_s = SEV_INFO_S |
| static const char * | sev_debug_l1_s = SEV_DEBUG_L1_S |
| static const char * | sev_debug_l2_s = SEV_DEBUG_L2_S |
| static const char * | sev_debug_l3_s = SEV_DEBUG_L3_S |
| static const char * | sev_debug_l4_s = SEV_DEBUG_L4_S |
| static const char * | sev_debug_l5_s = SEV_DEBUG_L5_S |
| static const char * | sev_unknown_s = SEV_UNKNOWN_S |
| static struct fd_list * | descriptor_list = NULL |
| static int | initialized = 0 |
| static char * | separator = NULL |
| int cg_log_add_target | ( | char * | target, | |
| int | mask | |||
| ) |
Add new logging target
| target | String identifying the logging target (Currently stdout|stderr|FILENAME) | |
| mask | Bitmask defining what messages are to be printed into this target |
| int cg_log_clear_targets | ( | ) |
Clear target list
| void cg_log_print | ( | int | severity, | |
| const char * | file, | |||
| int | line_n, | |||
| const char * | function, | |||
| const char * | format, | |||
| ... | ||||
| ) |
Multiplex log messages into different targets (streams), should be used via convenience macros
| severity | Message severity | |
| file | File name where the function is called | |
| line_n | Line number where the function is called | |
| function | Function name where this function is called | |
| format | Format string for the actual log message | |
| ... | Possible parameters for the format string |
| void cg_log_set_separator | ( | char * | s | ) |
Set log item separator
| s | String to use as a log item separator |
| static void log_init_with_defaults | ( | ) | [static] |
| static const char * map_severity | ( | int | severity | ) | [static] |
struct fd_list* descriptor_list = NULL [static] |
int initialized = 0 [static] |
char* separator = NULL [static] |
const char* sev_debug_l1_s = SEV_DEBUG_L1_S [static] |
const char* sev_debug_l2_s = SEV_DEBUG_L2_S [static] |
const char* sev_debug_l3_s = SEV_DEBUG_L3_S [static] |
const char* sev_debug_l4_s = SEV_DEBUG_L4_S [static] |
const char* sev_debug_l5_s = SEV_DEBUG_L5_S [static] |
const char* sev_error_s = SEV_ERROR_S [static] |
const char* sev_info_s = SEV_INFO_S [static] |
const char* sev_unknown_s = SEV_UNKNOWN_S [static] |
const char* sev_warning_s = SEV_WARNING_S [static] |
1.4.7