#include <stdarg.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 | LOGD_SYSLOG 0x01 |
| #define | LOGD_FILE 0x02 |
| #define | LOGD_STDERR 0x04 |
| #define | LOGP_ALERT 0 |
| #define | LOGP_ERROR 1 |
| #define | LOGP_WARN 2 |
| #define | LOGP_NOTE 3 |
| #define | LOGP_INFO 4 |
| #define | LOGP_DEBUG 5 |
| #define | LOGP_TRACE 6 |
| #define | LOGO_PID 0x01 |
| #define | LOGO_TIME 0x02 |
| #define | LOGO_PRIO 0x04 |
| #define | LOGO_IDENT 0x08 |
| #define | LOG_TRACEME log_traceme(__FILE__, __FUNCTION__, __LINE__); |
| simple trace helper | |
Functions | |
| void | log_init (log_options_t *options) |
| initialize log message mutliplexer | |
| int | log_alert (const char *fmt,...) |
| send ALERT 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 | |
| int | log_trace (const char *fmt,...) |
| send TRACE level message to the multiplexer | |
| int | log_traceme (const char *file, const char *func, int line) |
| send TRACE level message to the multiplexer | |
| void | log_alert_and_die (const char *fmt,...) |
| send ALERT 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_palert (const char *fmt,...) |
| send ALERT 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) | |
| int | log_ptrace (const char *fmt,...) |
| send TRACE level message to the multiplexer and append strerror(errno) | |
| void | log_palert_and_die (const char *fmt,...) |
| send ALERT 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 | |
1.5.2