SIP-router core :: debug printingModule: SIP-router core.
More...
#include <assert.h>
#include <syslog.h>
#include <stdio.h>
#include "compiler_opt.h"
#include "cfg_core.h"
Go to the source code of this file.
Data Structures
Defines
|
Simplier, prefered logging macros for constant log level
|
-
#define ALERT(fmt, args...) LOG(L_ALERT, fmt , ## args)
-
#define BUG(fmt, args...) LOG(L_BUG, fmt , ## args)
-
#define ERR(fmt, args...) LOG(L_ERR, fmt , ## args)
-
#define WARN(fmt, args...) LOG(L_WARN, fmt , ## args)
-
#define NOTICE(fmt, args...) LOG(L_NOTICE, fmt , ## args)
-
#define INFO(fmt, args...) LOG(L_INFO, fmt , ## args)
-
#define CRIT(fmt, args...) LOG(L_CRIT2, fmt , ## args)
-
#define DBG(fmt, args...) LOG(L_DBG, fmt , ## args)
-
#define DEBUG(fmt, args...) DBG(fmt , ## args)
-
#define LM_GEN1 LOG
-
#define LM_GEN2 LOG_FC
-
#define LM_ALERT ALERT
-
#define LM_CRIT CRIT
-
#define LM_ERR ERR
-
#define LM_WARN WARN
-
#define LM_NOTICE NOTICE
-
#define LM_INFO INFO
-
#define LM_DBG DEBUG
Functions
Variables
-
volatile int dprint_crit
- protection against "simultaneous" printing from signal handlers
-
int log_stderr
- non-zero if logging to stderr instead to the syslog
-
int process_no
- my_pid(), process_no are from pt.h but we cannot #include it here because of circular dependencies
Detailed Description
Definition in file dprint.h.
Define Documentation
| #define DEFAULT_FACILITY 0 |
Value 0 (the defaul) is LOG_KERN on Linux
Definition at line 97 of file dprint.h.
LOG_(level, prefix, fmt, ...) prints "printf"-formatted log message to stderr (if `log_stderr' is non-zero) or to syslog. Note that `fmt' must be constant. `prefix' is added to the beginning of the message.
LOG(level, fmt, ...) is same as LOG_() with LOC_INFO prefix.
Definition at line 165 of file dprint.h.