|
#define | LOGSYS_MODE_OUTPUT_FILE (1<<0) |
|
#define | LOGSYS_MODE_OUTPUT_STDERR (1<<1) |
|
#define | LOGSYS_MODE_OUTPUT_SYSLOG (1<<2) |
|
#define | LOGSYS_MODE_FORK (1<<3) |
|
#define | LOGSYS_MODE_THREADED (1<<4) |
|
#define | LOGSYS_LEVEL_EMERG LOG_EMERG |
|
#define | LOGSYS_LEVEL_ALERT LOG_ALERT |
|
#define | LOGSYS_LEVEL_CRIT LOG_CRIT |
|
#define | LOGSYS_LEVEL_ERROR LOG_ERR |
|
#define | LOGSYS_LEVEL_WARNING LOG_WARNING |
|
#define | LOGSYS_LEVEL_NOTICE LOG_NOTICE |
|
#define | LOGSYS_LEVEL_INFO LOG_INFO |
|
#define | LOGSYS_LEVEL_DEBUG LOG_DEBUG |
|
#define | LOGSYS_LEVEL_TRACE LOG_TRACE |
|
#define | LOGSYS_MAX_SUBSYS_COUNT 32 |
|
#define | LOGSYS_MAX_SUBSYS_NAMELEN 64 |
|
#define | LOGSYS_MAX_PERROR_MSG_LEN 128 |
|
#define | LOGSYS_DEBUG_OFF 0 |
|
#define | LOGSYS_DEBUG_ON 1 |
|
#define | LOGSYS_DEBUG_TRACE 2 |
|
#define | LOGSYS_DECLARE_SYSTEM(name, mode, syslog_facility, syslog_priority) |
| The LOGSYS_DECLARE_SYSTEM macro. More...
|
|
#define | LOGSYS_DECLARE_SUBSYS(subsys) |
| The LOGSYS_DECLARE_SUBSYS macro. More...
|
|
#define | LOGSYS_PERROR(err_num, level, fmt, args...) |
| The LOGSYS_PERROR macro. More...
|
|
#define | log_printf(level, format, args...) qb_log(level, format, ##args) |
|
#define | ENTER qb_enter |
|
#define | LEAVE qb_leave |
|
#define | TRACE1(format, args...) qb_log(LOG_TRACE, "TRACE1:" #format, ##args) |
|
#define | TRACE2(format, args...) qb_log(LOG_TRACE, "TRACE2:" #format, ##args) |
|
#define | TRACE3(format, args...) qb_log(LOG_TRACE, "TRACE3:" #format, ##args) |
|
#define | TRACE4(format, args...) qb_log(LOG_TRACE, "TRACE4:" #format, ##args) |
|
#define | TRACE5(format, args...) qb_log(LOG_TRACE, "TRACE5:" #format, ##args) |
|
#define | TRACE6(format, args...) qb_log(LOG_TRACE, "TRACE6:" #format, ##args) |
|
#define | TRACE7(format, args...) qb_log(LOG_TRACE, "TRACE7:" #format, ##args) |
|
#define | TRACE8(format, args...) qb_log(LOG_TRACE, "TRACE8:" #format, ##args) |
|
|
int | logsys_format_set (const char *format) |
| configuration bits that can only be done for the whole system More...
|
|
char * | logsys_format_get (void) |
| logsys_format_get More...
|
|
int | logsys_config_syslog_facility_set (const char *subsys, unsigned int facility) |
| per system/subsystem settings. More...
|
|
int | logsys_config_syslog_priority_set (const char *subsys, unsigned int priority) |
| logsys_config_syslog_priority_set More...
|
|
int | logsys_config_mode_set (const char *subsys, unsigned int mode) |
| logsys_config_mode_set More...
|
|
unsigned int | logsys_config_mode_get (const char *subsys) |
| logsys_config_mode_get More...
|
|
void | logsys_config_apply (void) |
| logsys_config_apply More...
|
|
int | logsys_config_file_set (const char *subsys, const char **error_string, const char *file) |
| to close a logfile, just invoke this function with a NULL file or if you want to change logfile, the old one will be closed for you. More...
|
|
int | logsys_config_logfile_priority_set (const char *subsys, unsigned int priority) |
| logsys_config_logfile_priority_set More...
|
|
int | logsys_config_debug_set (const char *subsys, unsigned int value) |
| enabling debug, disable message priority filtering. More...
|
|
int | logsys_config_debug_get (const char *subsys) |
| Return the debug flag for this subsys. More...
|
|
int | logsys_priority_id_get (const char *name) |
| logsys_priority_id_get More...
|
|
const char * | logsys_priority_name_get (unsigned int priority) |
| logsys_priority_name_get More...
|
|
int | _logsys_system_setup (const char *mainsystem, unsigned int mode, int syslog_facility, int syslog_priority) |
| _logsys_system_setup More...
|
|
void | logsys_system_fini (void) |
| logsys_system_fini More...
|
|
int | _logsys_config_subsys_get (const char *subsys) |
| _logsys_config_subsys_get More...
|
|
int | _logsys_subsys_create (const char *subsys, const char *filename) |
| _logsys_subsys_create More...
|
|
int | logsys_thread_start (void) |
| logsys_thread_start More...
|
|
void | logsys_blackbox_set (int enable) |
|
void | logsys_blackbox_prefork (void) |
|
void | logsys_blackbox_postfork (void) |
|
cs_error_t | logsys_reopen_log_files (void) |
|
int logsys_config_syslog_facility_set |
( |
const char * |
subsys, |
|
|
unsigned int |
facility |
|
) |
| |
per system/subsystem settings.
NOTE: once a subsystem is created and configured, changing the default does NOT affect the subsystems.
Pass a NULL subsystem to change them all
- Parameters
-
- Returns
Definition at line 657 of file logsys.c.