Data Structures | Defines | Functions | Variables

dprint.h File Reference

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"
Include dependency graph for dprint.h:

Go to the source code of this file.

Data Structures

Defines

SimpleLog

Simplier, prefered logging macros for constant log level

Functions

Variables


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.

#define DPRINT_NON_CRIT   (dprint_crit==0)

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.

#define LOG_FUNC_NAME

Definition at line 44 of file dprint.h.