level 2277 mod_freetdm/mod_freetdm.c static void ftdm_logger(const char *file, const char *func, int line, int level, const char *fmt, ...) level 2285 mod_freetdm/mod_freetdm.c switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, (char *)func, line, NULL, level, "%s", data); level 327 src/ftdm_io.c static void null_logger(const char *file, const char *func, int line, int level, const char *fmt, ...) level 329 src/ftdm_io.c if (file && func && line && level && fmt) { level 350 src/ftdm_io.c static void default_logger(const char *file, const char *func, int line, int level, const char *fmt, ...) level 356 src/ftdm_io.c if (level < 0 || level > 7) { level 357 src/ftdm_io.c level = 7; level 359 src/ftdm_io.c if (level > ftdm_log_level) { level 370 src/ftdm_io.c fprintf(stderr, "[%s] %s:%d %s() %s", FTDM_LEVEL_NAMES[level], file, line, func, data); level 554 src/ftdm_io.c FT_DECLARE(void) ftdm_global_set_default_logger(int level) level 556 src/ftdm_io.c if (level < 0 || level > 7) { level 557 src/ftdm_io.c level = 7; level 561 src/ftdm_io.c ftdm_log_level = level; level 2105 src/ftmod/ftmod_isdn/ftmod_isdn.c static int ftdm_isdn_q921_log(void *pvt, Q921LogLevel_t level, char *msg, L2INT size) level 2109 src/ftmod/ftmod_isdn/ftmod_isdn.c ftdm_log("Span", "Q.921", span->span_id, (int)level, "%s", msg); level 2113 src/ftmod/ftmod_isdn/ftmod_isdn.c static L3INT ftdm_isdn_q931_log(void *pvt, Q931LogLevel_t level, char *msg, L3INT size) level 2117 src/ftmod/ftmod_isdn/ftmod_isdn.c ftdm_log("Span", "Q.931", span->span_id, (int)level, "%s", msg); level 2285 src/ftmod/ftmod_isdn/ftmod_isdn.c static int32_t parse_loglevel(const char *level) level 2287 src/ftmod/ftmod_isdn/ftmod_isdn.c if (!level) level 2290 src/ftmod/ftmod_isdn/ftmod_isdn.c if (!strcasecmp(level, "debug")) { level 2292 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "info")) { level 2294 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "notice")) { level 2296 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "warning")) { level 2298 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "error")) { level 2300 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "alert")) { level 2302 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "crit")) { level 2304 src/ftmod/ftmod_isdn/ftmod_isdn.c } else if (!strcasecmp(level, "emerg")) { level 2425 src/ftmod/ftmod_isdn/ftmod_isdn.c int level = 0; level 2456 src/ftmod/ftmod_isdn/ftmod_isdn.c if ((level = parse_loglevel(argv[3])) < 0) { level 2462 src/ftmod/ftmod_isdn/ftmod_isdn.c Q921SetLogLevel(&isdn_data->q921, (Q921LogLevel_t)level); level 2465 src/ftmod/ftmod_isdn/ftmod_isdn.c Q931SetLogLevel(&isdn_data->q931, (Q931LogLevel_t)level); level 888 src/ftmod/ftmod_r2/ftmod_r2.c static void ftdm_r2_write_log(openr2_log_level_t level, const char *file, const char *function, int line, const char *message) level 890 src/ftmod/ftmod_r2/ftmod_r2.c switch (level) { level 908 src/ftmod/ftmod_r2/ftmod_r2.c ftdm_log(FTDM_LOG_WARNING, "We should handle logging level %d here.\n", level); level 915 src/ftmod/ftmod_r2/ftmod_r2.c openr2_log_level_t level, const char *fmt, va_list ap) level 922 src/ftmod/ftmod_r2/ftmod_r2.c ftdm_r2_write_log(level, file, function, line, completemsg); level 927 src/ftmod/ftmod_r2/ftmod_r2.c openr2_log_level_t level, const char *fmt, va_list ap) level 936 src/ftmod/ftmod_r2/ftmod_r2.c ftdm_r2_write_log(level, file, function, line, completemsg); level 1208 src/ftmod/ftmod_r2/ftmod_r2.c static openr2_log_level_t ftdm_r2_loglevel_from_string(const char *level) level 1215 src/ftmod/ftmod_r2/ftmod_r2.c logval = ftdm_malloc(strlen(level)+1); /* alloca man page scared me, so better to use good ol' malloc */ level 1217 src/ftmod/ftmod_r2/ftmod_r2.c ftdm_log(FTDM_LOG_WARNING, "Ignoring R2 logging parameter: '%s', failed to alloc memory\n", level); level 1220 src/ftmod/ftmod_r2/ftmod_r2.c strcpy(logval, level); level 381 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h void sngisdn_rcv_sng_log(uint8_t level, char *fmt,...); level 435 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h void handle_sng_log(uint8_t level, char *fmt,...); level 962 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_rcv.c void sngisdn_rcv_sng_log(uint8_t level, char *fmt,...) level 974 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_rcv.c switch (level) { level 49 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c static ftdm_status_t handle_set_function_trace(ftdm_stream_handle_t *stream, int on, int level); level 50 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c static ftdm_status_t handle_set_message_trace(ftdm_stream_handle_t *stream, int on, int level); level 653 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c static ftdm_status_t handle_set_function_trace(ftdm_stream_handle_t *stream, int on, int level) level 660 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c g_ftdm_sngss7_data.function_trace_level = level; level 670 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c static ftdm_status_t handle_set_message_trace(ftdm_stream_handle_t *stream, int on, int level) level 677 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c g_ftdm_sngss7_data.message_trace_level = level; level 45 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_logger.c void handle_sng_log(uint8_t level, char *fmt,...); level 54 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_logger.c void handle_sng_log(uint8_t level, char *fmt,...) level 66 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_logger.c switch (level) { level 458 src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_main.h void handle_sng_log(uint8_t level, char *fmt,...); level 700 src/ftmod/ftmod_zt/ftmod_zt.c int level = FTDM_COMMAND_OBJ_INT; level 701 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &level); level 702 src/ftmod/ftmod_zt/ftmod_zt.c FTDM_COMMAND_OBJ_INT = level; level 706 src/ftmod/ftmod_zt/ftmod_zt.c int level = 0; level 707 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &level); level 708 src/ftmod/ftmod_zt/ftmod_zt.c FTDM_COMMAND_OBJ_INT = level; level 713 src/ftmod/ftmod_zt/ftmod_zt.c int level = FTDM_COMMAND_OBJ_INT; level 714 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &level); level 715 src/ftmod/ftmod_zt/ftmod_zt.c FTDM_COMMAND_OBJ_INT = level; level 719 src/ftmod/ftmod_zt/ftmod_zt.c int level = 0; level 720 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &level); level 721 src/ftmod/ftmod_zt/ftmod_zt.c FTDM_COMMAND_OBJ_INT = level; level 179 src/include/freetdm.h typedef void (*ftdm_logger_t)(const char *file, const char *func, int line, int level, const char *fmt, ...); level 1668 src/include/freetdm.h FT_DECLARE(void) ftdm_global_set_default_logger(int level); level 659 src/include/private/ftdm_core.h #define ftdm_log_throttle(level, ...) \ level 662 src/include/private/ftdm_core.h ftdm_log(level, __VA_ARGS__); \ level 666 src/include/private/ftdm_core.h #define ftdm_log_chan_ex(fchan, file, func, line, level, format, ...) ftdm_log(file, func, line, level, "[s%dc%d][%d:%d] " format, fchan->span_id, fchan->chan_id, fchan->physical_span_id, fchan->physical_chan_id, __VA_ARGS__) level 667 src/include/private/ftdm_core.h #define ftdm_log_chan(fchan, level, format, ...) ftdm_log(level, "[s%dc%d][%d:%d] " format, fchan->span_id, fchan->chan_id, fchan->physical_span_id, fchan->physical_chan_id, __VA_ARGS__) level 668 src/include/private/ftdm_core.h #define ftdm_log_chan_msg(fchan, level, msg) ftdm_log(level, "[s%dc%d][%d:%d] " msg, fchan->span_id, fchan->chan_id, fchan->physical_span_id, fchan->physical_chan_id) level 670 src/include/private/ftdm_core.h #define ftdm_log_chan_throttle(fchan, level, format, ...) ftdm_log_throttle(level, "[s%dc%d][%d:%d] " format, fchan->span_id, fchan->chan_id, fchan->physical_span_id, fchan->physical_chan_id, __VA_ARGS__) level 671 src/include/private/ftdm_core.h #define ftdm_log_chan_msg_throttle(fchan, level, format, ...) ftdm_log_throttle(level, "[s%dc%d][%d:%d] " format, fchan->span_id, fchan->chan_id, fchan->physical_span_id, fchan->physical_chan_id, __VA_ARGS__) level 484 src/isdn/Q921.c static int Q921Log(L2TRUNK trunk, Q921LogLevel_t level, const char *fmt, ...) level 493 src/isdn/Q921.c if(trunk->loglevel < level) level 510 src/isdn/Q921.c return trunk->Q921LogProc(trunk->PrivateDataLog, level, buf, len); level 568 src/isdn/Q921.c static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2UCHAR *mes, L2INT size, const char *fmt, ...) level 577 src/isdn/Q921.c if(trunk->loglevel < level) level 829 src/isdn/Q921.c return trunk->Q921LogProc(trunk->PrivateDataLog, level, buf, (int)strlen(buf)); level 2995 src/isdn/Q921.c void Q921SetLogLevel(L2TRUNK trunk, Q921LogLevel_t level) level 3000 src/isdn/Q921.c if (level < Q921_LOG_NONE) { level 3001 src/isdn/Q921.c level = Q921_LOG_NONE; level 3002 src/isdn/Q921.c } else if (level > Q921_LOG_DEBUG) { level 3003 src/isdn/Q921.c level = Q921_LOG_DEBUG; level 3006 src/isdn/Q921.c trunk->loglevel = level; level 820 src/isdn/Q931.c L3INT Q931Log(Q931_TrunkInfo_t *trunk, Q931LogLevel_t level, const char *fmt, ...) level 829 src/isdn/Q931.c if (trunk->loglevel < level) level 846 src/isdn/Q931.c return trunk->Q931LogCBProc(trunk->PrivateDataLog, level, buf, len); level 863 src/isdn/Q931.c void Q931SetLogLevel(Q931_TrunkInfo_t *trunk, Q931LogLevel_t level) level 868 src/isdn/Q931.c if (level < Q931_LOG_NONE) { level 869 src/isdn/Q931.c level = Q931_LOG_NONE; level 870 src/isdn/Q931.c } else if (level > Q931_LOG_DEBUG) { level 871 src/isdn/Q931.c level = Q931_LOG_DEBUG; level 874 src/isdn/Q931.c trunk->loglevel = level; level 217 src/isdn/include/Q921.h void Q921SetLogLevel(L2TRUNK trunk, Q921LogLevel_t level); level 313 src/isdn/include/Q921priv.h static int Q921Log(L2TRUNK trunk, Q921LogLevel_t level, const char *fmt, ...); level 314 src/isdn/include/Q921priv.h static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2UCHAR *mes, L2INT size, const char *fmt, ...); level 1158 src/isdn/include/Q931.h L3INT Q931Log(Q931_TrunkInfo_t *trunk, Q931LogLevel_t level, const char *fmt, ...); level 1160 src/isdn/include/Q931.h void Q931SetLogLevel(Q931_TrunkInfo_t *trunk, Q931LogLevel_t level);