#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <asterisk/lock.h>
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/config.h>
#include <asterisk/term.h>
#include <asterisk/cli.h>
#include <asterisk/utils.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include <sys/stat.h>
#include "asterisk.h"
#include "astconf.h"
#include <syslog.h>
#include <asterisk/logger.h>
Include dependency graph for logger.c:
Go to the source code of this file.
Data Structures | |
struct | msglist |
struct | logchannel |
struct | verb |
Defines | |
#define | SYSLOG_NAMES |
#define | SYSLOG_NLEVELS 6 |
#define | MAX_MSG_QUEUE 200 |
Functions | |
AST_MUTEX_DEFINE_STATIC (msglist_lock) | |
AST_MUTEX_DEFINE_STATIC (loglock) | |
AST_MUTEX_DEFINE_STATIC (qloglock) | |
void | ast_queue_log (const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt,...) |
int | reload_logger (int rotate) |
int | init_logger (void) |
void | ast_log (int level, const char *file, int line, const char *function, const char *fmt,...) |
void | ast_verbose (const char *fmt,...) |
int | ast_verbose_dmesg (void(*v)(const char *string, int opos, int replacelast, int complete)) |
int | ast_register_verbose (void(*v)(const char *string, int opos, int replacelast, int complete)) |
int | ast_unregister_verbose (void(*v)(const char *string, int opos, int replacelast, int complete)) |
|
Definition at line 49 of file logger.c. Referenced by ast_verbose(). |
|
Value:
|
|
|
|
Definition at line 455 of file logger.c. References __LOG_DEBUG, __LOG_EVENT, __LOG_VERBOSE, ast_console_puts(), ast_log(), ast_mutex_lock, ast_mutex_unlock, ast_verbose(), COLOR_BRWHITE, LOG_EVENT, option_debug, option_verbose, reload_logger(), and term_color().
|
|
|
|
|
|
|
|
Definition at line 233 of file logger.c. References ast_mutex_lock, and ast_mutex_unlock.
|
|
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.
|
|
Definition at line 551 of file logger.c. References ast_log(), ast_mutex_lock, ast_mutex_unlock, free, LOG_ERROR, LOG_VERBOSE, malloc, MAX_MSG_QUEUE, and strdup.
|
|
Definition at line 615 of file logger.c. References ast_mutex_lock, and ast_mutex_unlock.
|
|
Definition at line 399 of file logger.c. References ast_cli_register(), ast_config_AST_LOG_DIR, ast_log(), ast_verbose(), EVENTLOG, LOG_ERROR, LOG_EVENT, and option_verbose. Referenced by main().
|
|
Definition at line 267 of file logger.c. References ast_config_AST_LOG_DIR, AST_CONFIG_MAX_PATH, ast_log(), ast_mutex_lock, ast_mutex_unlock, ast_verbose(), EVENTLOG, LOG_ERROR, LOG_EVENT, and option_verbose. Referenced by ast_log().
|