log.h File Reference

#include <stdbool.h>
#include <stdarg.h>
#include <libgen.h>

Include dependency graph for log.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  log_options_t
 multiplexer configuration data More...

Defines

#define LOG_TRACEME
 simple trace helper

Functions

void log_init (log_options_t *options)
 initialize log message mutliplexer
void log_internal (int level, int strerr, const char *fmt, va_list ap)
int log_emerg (const char *fmt,...)
 send EMERG level message to the multiplexer
int log_alert (const char *fmt,...)
 send ALERT level message to the multiplexer
int log_crit (const char *fmt,...)
 send CRIT level message to the multiplexer
int log_error (const char *fmt,...)
 send ERR level message to the multiplexer
int log_warn (const char *fmt,...)
 send WARNING level message to the multiplexer
int log_notice (const char *fmt,...)
 send NOTICE level message to the multiplexer
int log_info (const char *fmt,...)
 send INFO level message to the multiplexer
int log_debug (const char *fmt,...)
 send DEBUG level message to the multiplexer
void log_emerg_and_die (const char *fmt,...)
 send EMERG level message to the multiplexer and exit(2)
void log_alert_and_die (const char *fmt,...)
 send ALERT level message to the multiplexer and exit(2)
void log_crit_and_die (const char *fmt,...)
 send CRIT level message to the multiplexer and exit(2)
void log_error_and_die (const char *fmt,...)
 send ERR level message to the multiplexer and exit(2)
int log_pemerg (const char *fmt,...)
 send EMERG level message to the multiplexer and append strerror(errno)
int log_palert (const char *fmt,...)
 send ALERT level message to the multiplexer and append strerror(errno)
int log_pcrit (const char *fmt,...)
 send CRIT level message to the multiplexer and append strerror(errno)
int log_perror (const char *fmt,...)
 send ERR level message to the multiplexer and append strerror(errno)
int log_pwarn (const char *fmt,...)
 send WARNING level message to the multiplexer and append strerror(errno)
int log_pnotice (const char *fmt,...)
 send NOTICE level message to the multiplexer and append strerror(errno)
int log_pinfo (const char *fmt,...)
 send INFO level message to the multiplexer and append strerror(errno)
int log_pdebug (const char *fmt,...)
 send DEBUG level message to the multiplexer and append strerror(errno)
void log_pemerg_and_die (const char *fmt,...)
 send EMERG level message to the multiplexer, append strerror(errno) and exit(2)
void log_palert_and_die (const char *fmt,...)
 send ALERT level message to the multiplexer, append strerror(errno) and exit(2)
void log_pcrit_and_die (const char *fmt,...)
 send CRIT level message to the multiplexer, append strerror(errno) and exit(2)
void log_perror_and_die (const char *fmt,...)
 send ERR level message to the multiplexer, append strerror(errno) and exit(2)
void log_close (void)
 close connection to logging system


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