![]() |
TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
|
logging utilities More...
#include <stdio.h>

Go to the source code of this file.
Macros | |
| #define | ERROR(format, ...) |
| log an error | |
| #define | WARNING(format, ...) |
| log a warning | |
| #define | INFO(format, ...) |
| log informational event | |
| #define | DEBUG(format, ...) |
| log for debugging purposes | |
| #define | TRACE(format, ...) |
| log for tracing purposes | |
Enumerations | |
| enum | loglevel_t { LOG_ERROR , LOG_WARNING , LOG_INFO , LOG_DEBUG , LOG_TRACE } |
| error levels | |
Functions | |
| void | logging_init (FILE *logf, loglevel_t loglevel) |
| initialize log file and log level | |
| void | logging_log (loglevel_t level, const char *component, const char *format,...) |
| log | |
| void | logging_log_debug (loglevel_t level, const char *component, const char *file, const char *func, int line, const char *format,...) |
| log with debug info | |
logging utilities
| #define DEBUG | ( | format, | |
| ... ) |
log for debugging purposes
| #define ERROR | ( | format, | |
| ... ) |
log an error
| #define INFO | ( | format, | |
| ... ) |
log informational event
| #define TRACE | ( | format, | |
| ... ) |
log for tracing purposes
| #define WARNING | ( | format, | |
| ... ) |
log a warning