#include <stdio.h>
#include <stdarg.h>
#include <syslog.h>
#include <time.h>
#include <assert.h>
#include <debug.h>
#include "log.h"
Include dependency graph for log.c:

Go to the source code of this file.
Functions | |
| void | init_log_engine (const char *log_id) |
| void | nubase_log_engine_set (int engine) |
| void | do_log_area_printf (int area, int priority, char *format, va_list args) |
| void | log_area_printf (debug_area_t area, debug_level_t priority, char *format,...) |
| void | log_printf (debug_level_t priority, char *format,...) |
Variables | |
| int | log_engine |
| int | debug_level |
| int | debug_areas |
| int | syslog_priority_map [MAX_DEBUG_LEVEL-MIN_DEBUG_LEVEL+1] |
Before using the log, call init_log_engine(). After that call log_printf() as you call printf, you just need a priority as first argument.
The global variable log_engine choose between printf() (value LOG_TO_STD) and syslog() (value LOG_TO_SYSLOG).
Definition in file log.c.
1.4.7