log/log_internal.c File Reference

#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 "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

void log_internal (int level, int strerr, const char *fmt, va_list ap)

Variables

log_options_t_log_options


Define Documentation

#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 96 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 113 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 126 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 144 of file log_internal.c.


Variable Documentation

log_options_t* _log_options

Definition at line 26 of file log_init.c.


Generated on Sun Dec 3 17:46:02 2006 for lucid by  doxygen 1.5.1