#include <stdarg.h>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | EVENTLOG "event_log" |
#define | DEBUG_M(a) |
#define | _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__ |
#define | __LOG_DEBUG 0 |
#define | LOG_DEBUG __LOG_DEBUG, _A_ |
#define | __LOG_EVENT 1 |
#define | LOG_EVENT __LOG_EVENT, _A_ |
#define | __LOG_NOTICE 2 |
#define | LOG_NOTICE __LOG_NOTICE, _A_ |
#define | __LOG_WARNING 3 |
#define | LOG_WARNING __LOG_WARNING, _A_ |
#define | __LOG_ERROR 4 |
#define | LOG_ERROR __LOG_ERROR, _A_ |
#define | __LOG_VERBOSE 5 |
#define | LOG_VERBOSE __LOG_VERBOSE, _A_ |
Functions | |
void | ast_log (int level, const char *file, int line, const char *function, const char *fmt,...) __attribute__((format(printf |
Used for sending a log message. | |
void | ast_queue_log (const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt,...) __attribute__((format(printf |
void | ast_verbose (const char *fmt,...) __attribute__((format(printf |
Send a verbose message (based on verbose level). | |
int | ast_register_verbose (void(*verboser)(const char *string, int opos, int replacelast, int complete)) |
int | ast_unregister_verbose (void(*verboser)(const char *string, int opos, int replacelast, int complete)) |
int | ast_verbose_dmesg (void(*verboser)(const char *string, int opos, int replacelast, int complete)) |
void | ast_console_puts (const char *string) |
|
Definition at line 67 of file logger.h. Referenced by ast_log(). |
|
|
|
Definition at line 73 of file logger.h. Referenced by ast_log(). |
|
|
|
Definition at line 97 of file logger.h. Referenced by ast_log(). |
|
|
|
|
|
Value:
|
|
Definition at line 23 of file logger.h. Referenced by init_logger(), and reload_logger(). |
|
|
|
Definition at line 74 of file logger.h. Referenced by ast_log(), init_logger(), and reload_logger(). |
|
|
Definition at line 98 of file logger.h. Referenced by ast_verbose(). |
|
|
Definition at line 216 of file asterisk.c. References string. Referenced by ast_log().
|
|
|
|
|
Definition at line 629 of file logger.c. References ast_mutex_lock, ast_mutex_unlock, and malloc. Referenced by main().
|
|
Definition at line 651 of file logger.c. References ast_mutex_lock, ast_mutex_unlock, and free.
|
|
Send a verbose message (based on verbose level). This works like ast_log, but prints verbose messages to the console depending on verbosity level set. ast_verbose(VERBOSE_PREFIX_3 "Whatever %s is happening\n", "nothing"); This will print the message to the console if the verbose level is set to a level >= 3 Note the abscence of a comma after the VERBOSE_PREFIX_3. This is important. VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined. Referenced by ast_cdr_unregister(), ast_channel_bridge(), ast_channel_register_ex(), ast_channel_unregister(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_create(), ast_format_register(), ast_format_unregister(), ast_frame_dump(), ast_image_register(), ast_image_unregister(), ast_load_resource(), ast_log(), ast_manager_unregister(), ast_module_reload(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run(), ast_register_application(), ast_register_indication_country(), ast_register_translator(), ast_rtp_reload(), ast_save(), ast_set_indication_country(), ast_streamfile(), ast_unregister_application(), ast_unregister_indication_country(), ast_unregister_translator(), init_logger(), init_manager(), load_modules(), load_pbx(), main(), pbx_builtin_setvar_helper(), and reload_logger(). |
|
Definition at line 615 of file logger.c. References ast_mutex_lock, and ast_mutex_unlock.
|