Asterisk - The Open Source Telephony Project GIT-master-7e7a603
Macros
res/res_aeap/logger.h File Reference
#include "asterisk.h"
#include "asterisk/logger.h"
#include "asterisk/strings.h"
Include dependency graph for res/res_aeap/logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define aeap_error(obj, name, fmt, ...)   aeap_log(LOG_ERROR, obj, name, fmt, ##__VA_ARGS__)
 Log an Asterisk external application error. More...
 
#define aeap_log(level, obj, name, fmt, ...)
 Log an Asterisk external application message. More...
 
#define aeap_warn(obj, name, fmt, ...)   aeap_log(LOG_WARNING, obj, name, fmt, ##__VA_ARGS__)
 Log an Asterisk external application warning. More...
 

Macro Definition Documentation

◆ aeap_error

#define aeap_error (   obj,
  name,
  fmt,
  ... 
)    aeap_log(LOG_ERROR, obj, name, fmt, ##__VA_ARGS__)

Log an Asterisk external application error.

Parameters
objThe object being logged
nameOptional subsystem name
fmtFormat string
...Parameters for the format string

Definition at line 48 of file res/res_aeap/logger.h.

◆ aeap_log

#define aeap_log (   level,
  obj,
  name,
  fmt,
  ... 
)
Value:
ast_log(level, "AEAP%s%s (%p): " fmt "\n", ast_strlen_zero(name) ? "" : " ", \
ast_strlen_zero(name) ? "" : name, obj, ##__VA_ARGS__)
#define ast_log
Definition: astobj2.c:42
static const char name[]
Definition: format_mp3.c:68
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Definition: strings.h:65

Log an Asterisk external application message.

Parameters
levelThe logging level
objThe object being logged
nameOptional subsystem name
fmtFormat string
...Parameters for the format string

Definition at line 36 of file res/res_aeap/logger.h.

◆ aeap_warn

#define aeap_warn (   obj,
  name,
  fmt,
  ... 
)    aeap_log(LOG_WARNING, obj, name, fmt, ##__VA_ARGS__)

Log an Asterisk external application warning.

Parameters
objThe object being logged
nameOptional subsystem name
fmtFormat string
...Parameters for the format string

Definition at line 58 of file res/res_aeap/logger.h.