|
Webcom C SDK
|
#include "webcom-config.h"#include <syslog.h>

Go to the source code of this file.
Macros | |
| #define | W_LOG(_facility, _level, _fmt, ...) |
| #define | W_EXDBG(_facility, _fmt, ...) W_LOG((_facility), WC_LOG_EXTRADEBUG, _fmt, ## __VA_ARGS__) |
| #define | W_DBG( _facility, _fmt, ...) W_LOG((_facility), WC_LOG_DEBUG, _fmt, ## __VA_ARGS__) |
| #define | W_INFO(_facility, _fmt, ...) W_LOG((_facility), WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define | W_NOT( _facility, _fmt, ...) W_LOG((_facility), WC_LOG_NOTICE, _fmt, ## __VA_ARGS__) |
| #define | W_WARN(_facility, _fmt, ...) W_LOG((_facility), WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define | W_ERR( _facility, _fmt, ...) W_LOG((_facility), WC_LOG_ERR, _fmt, ## __VA_ARGS__) |
| #define | W_CRIT(_facility, _fmt, ...) W_LOG((_facility), WC_LOG_CRIT, _fmt, ## __VA_ARGS__) |
| #define | W_ALRT(_facility, _fmt, ...) W_LOG((_facility), WC_LOG_ALERT, _fmt, ## __VA_ARGS__) |
| #define | W_EMRG(_facility, _fmt, ...) W_LOG((_facility), WC_LOG_EMERG, _fmt, ## __VA_ARGS__) |
| #define | LOCAL_LOG_FACILITY WC_LOG_GENERAL |
| #define | WL_LOG(_level, _fmt, ...) W_LOG(LOCAL_LOG_FACILITY, (_level), _fmt, ## __VA_ARGS__) |
| #define | WL_EXDBG(_fmt, ...) WL_LOG(WC_LOG_EXTRADEBUG, _fmt, ## __VA_ARGS__) |
| #define | WL_DBG( _fmt, ...) WL_LOG(WC_LOG_DEBUG, _fmt, ## __VA_ARGS__) |
| #define | WL_INFO(_fmt, ...) WL_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define | WL_NOT( _fmt, ...) WL_LOG(WC_LOG_NOTICE, _fmt, ## __VA_ARGS__) |
| #define | WL_WARN(_fmt, ...) WL_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define | WL_ERR( _fmt, ...) WL_LOG(WC_LOG_ERR, _fmt, ## __VA_ARGS__) |
| #define | WL_CRIT(_fmt, ...) WL_LOG(WC_LOG_CRIT, _fmt, ## __VA_ARGS__) |
| #define | WL_ALRT(_fmt, ...) WL_LOG(WC_LOG_ALERT, _fmt, ## __VA_ARGS__) |
| #define | WL_EMRG(_fmt, ...) WL_LOG(WC_LOG_EMERG, _fmt, ## __VA_ARGS__) |
| #define | APP_LOG(_level, _fmt, ...) W_LOG(WC_LOG_APPLICATION, (_level), _fmt, ## __VA_ARGS__) |
| #define | APP_EXDBG(_fmt, ...) APP_LOG(WC_LOG_EXTRADEBUG, _fmt, ## __VA_ARGS__) |
| #define | APP_DBG( _fmt, ...) APP_LOG(WC_LOG_DEBUG, _fmt, ## __VA_ARGS__) |
| #define | APP_INFO(_fmt, ...) APP_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define | APP_NOT( _fmt, ...) APP_LOG(WC_LOG_NOTICE, _fmt, ## __VA_ARGS__) |
| #define | APP_WARN(_fmt, ...) APP_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define | APP_ERR( _fmt, ...) APP_LOG(WC_LOG_ERR, _fmt, ## __VA_ARGS__) |
| #define | APP_CRIT(_fmt, ...) APP_LOG(WC_LOG_CRIT, _fmt, ## __VA_ARGS__) |
| #define | APP_ALRT(_fmt, ...) APP_LOG(WC_LOG_ALERT, _fmt, ## __VA_ARGS__) |
| #define | APP_EMRG(_fmt, ...) APP_LOG(WC_LOG_EMERG, _fmt, ## __VA_ARGS__) |
Typedefs | |
| typedef void(* | wc_log_f) (const char *f, const char *l, const char *file, const char *func, int line, const char *message) |
Functions | |
| void | wc_set_log_level (enum wc_log_facility f, enum wc_log_level l) |
| void | wc_log_use_syslog (const char *ident, int option, int facility) |
| void | wc_log_use_journald (void) |
| void | wc_log_use_stderr (void) |
| void | wc_log_use_custom (wc_log_f f) |
| void | wc_log (enum wc_log_facility f, enum wc_log_level l, const char *file, const char *func, int line, const char *fmt,...) __attribute__((format(printf |
| #define APP_ALRT | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_ALERT, _fmt, ## __VA_ARGS__) |
| #define APP_CRIT | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_CRIT, _fmt, ## __VA_ARGS__) |
| #define APP_DBG | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_DEBUG, _fmt, ## __VA_ARGS__) |
| #define APP_EMRG | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_EMERG, _fmt, ## __VA_ARGS__) |
| #define APP_ERR | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_ERR, _fmt, ## __VA_ARGS__) |
| #define APP_EXDBG | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_EXTRADEBUG, _fmt, ## __VA_ARGS__) |
| #define APP_INFO | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define APP_NOT | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_NOTICE, _fmt, ## __VA_ARGS__) |
| #define APP_WARN | ( | _fmt, | |
| ... | |||
| ) | APP_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define LOCAL_LOG_FACILITY WC_LOG_GENERAL |
| #define W_ALRT | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_ALERT, _fmt, ## __VA_ARGS__) |
| #define W_CRIT | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_CRIT, _fmt, ## __VA_ARGS__) |
| #define W_DBG | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_DEBUG, _fmt, ## __VA_ARGS__) |
| #define W_EMRG | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_EMERG, _fmt, ## __VA_ARGS__) |
| #define W_ERR | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_ERR, _fmt, ## __VA_ARGS__) |
| #define W_EXDBG | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_EXTRADEBUG, _fmt, ## __VA_ARGS__) |
| #define W_INFO | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define W_NOT | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_NOTICE, _fmt, ## __VA_ARGS__) |
| #define W_WARN | ( | _facility, | |
| _fmt, | |||
| ... | |||
| ) | W_LOG((_facility), WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define WL_ALRT | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_ALERT, _fmt, ## __VA_ARGS__) |
| #define WL_CRIT | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_CRIT, _fmt, ## __VA_ARGS__) |
| #define WL_DBG | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_DEBUG, _fmt, ## __VA_ARGS__) |
| #define WL_EMRG | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_EMERG, _fmt, ## __VA_ARGS__) |
| #define WL_ERR | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_ERR, _fmt, ## __VA_ARGS__) |
| #define WL_EXDBG | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_EXTRADEBUG, _fmt, ## __VA_ARGS__) |
| #define WL_INFO | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
| #define WL_NOT | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_NOTICE, _fmt, ## __VA_ARGS__) |
| #define WL_WARN | ( | _fmt, | |
| ... | |||
| ) | WL_LOG(WC_LOG_INFO, _fmt, ## __VA_ARGS__) |
1.8.13