#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <stdarg.h>
#include <syslog.h>
#include <string.h>
#include <time.h>
#include "log.h"
#include "mem.h"
#include "printf.h"
#include "str.h"
Include dependency graph for log_internal.c:

Go to the source code of this file.
Defines | |
| #define | LOGFUNC(name, level, rc) |
| #define | LOGFUNCDIE(name, level) |
| #define | LOGPFUNC(name, level, rc) |
| #define | LOGPFUNCDIE(name, level) |
Functions | |
| int | log_traceme (const char *file, const char *func, int line) |
| send TRACE level message to the multiplexer | |
Variables | |
| log_options_t * | _log_options |
| #define LOGFUNC | ( | name, | |||
| level, | |||||
| rc | ) |
Value:
int log_ ## name (const char *fmt, ...) { \ va_list ap; va_start(ap, fmt); \ log_internal(level, 0, fmt, ap); \ va_end(ap); \ return rc; \ }
Definition at line 128 of file log_internal.c.
| #define LOGFUNCDIE | ( | name, | |||
| level | ) |
Value:
void log_ ## name ## _and_die(const char *fmt, ...) { \ va_list ap; va_start(ap, fmt); \ log_internal(level, 0, fmt, ap); \ va_end(ap); \ exit(EXIT_FAILURE); \ }
Definition at line 144 of file log_internal.c.
| #define LOGPFUNC | ( | name, | |||
| level, | |||||
| rc | ) |
Value:
int log_p ## name (const char *fmt, ...) { \ errno_orig = errno; \ va_list ap; va_start(ap, fmt); \ log_internal(level, 1, fmt, ap); \ va_end(ap); \ return rc; \ }
Definition at line 155 of file log_internal.c.
| #define LOGPFUNCDIE | ( | name, | |||
| level | ) |
Value:
void log_p ## name ## _and_die(const char *fmt, ...) { \ errno_orig = errno; \ va_list ap; va_start(ap, fmt); \ log_internal(level, 1, fmt, ap); \ va_end(ap); \ exit(EXIT_FAILURE); \ }
Definition at line 172 of file log_internal.c.
Definition at line 25 of file log_init.c.
1.5.2