static FILE *eventlog;
static FILE *qlog;
+/*! \brief Logging channels used in the Asterisk logging system */
static char *levels[] = {
"DEBUG",
"EVENT",
"DTMF"
};
+/*! \brief Colors used in the console for logging */
static int colors[] = {
COLOR_BRGREEN,
COLOR_BRBLUE,
syslog(syslog_level_map[level], "%s", buf);
}
-/* Print a normal log message to the channels */
+/*! \brief Print a normal log message to the channels */
static void logger_print_normal(struct logmsg *logmsg)
{
struct logchannel *chan = NULL;
return;
}
-/* Print a verbose message to the verbosers */
+/*! \brief Print a verbose message to the verbosers */
static void logger_print_verbose(struct logmsg *logmsg)
{
struct verb *v = NULL;
return;
}
-/* Actual logging thread */
+/*! \brief Actual logging thread */
static void *logger_thread(void *data)
{
struct logmsg *next = NULL, *msg = NULL;
char date[40];
char *datefmt;
- tv = ast_tvnow();
+ tv = ast_tvnow();
ast_localtime(&tv, &tm, NULL);
ast_strftime(date, sizeof(date), dateformat, &tm);
datefmt = alloca(strlen(date) + 3 + strlen(fmt) + 1);