27 lines
612 B
C
27 lines
612 B
C
#ifndef GD_ERRORS_H
|
|
#define GD_ERRORS_H
|
|
|
|
#include <syslog.h>
|
|
|
|
/*
|
|
LOG_EMERG system is unusable
|
|
LOG_ALERT action must be taken immediately
|
|
LOG_CRIT critical conditions
|
|
LOG_ERR error conditions
|
|
LOG_WARNING warning conditions
|
|
LOG_NOTICE normal, but significant, condition
|
|
LOG_INFO informational message
|
|
LOG_DEBUG debug-level message
|
|
*/
|
|
|
|
#define E_ERROR LOG_ERR
|
|
#define E_WARNING LOG_WARNING
|
|
#define E_NOTICE LOG_NOTICE
|
|
#define E_INFO LOG_INFO
|
|
#define E_DEBUG LOG_DEBUG
|
|
|
|
void gd_error(const char *format, ...);
|
|
void gd_error_ex(int priority, const char *format, ...);
|
|
|
|
#endif
|