Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00031 #ifndef EUREPHIA_LOG_STRUCT_H
00032 #define EUREPHIA_LOG_STRUCT_H
00033
00034 #include <syslog.h>
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef LOG_INFO
00043 #define LOG_INFO 101
00044 #endif
00045
00046 #ifndef LOG_DEBUG
00047 #define LOG_DEBUG 102
00048 #endif
00049
00050 #ifndef LOG_WARNING
00051 #define LOG_WARNING 103
00052 #endif
00053
00054 #ifndef LOG_ERR
00055 #define LOG_ERR 104
00056 #endif
00057 #define LOG_ERROR LOG_ERR
00059 #ifndef LOG_CRIT
00060 #define LOG_CRIT 105
00061 #endif
00062 #define LOG_CRITICAL LOG_CRIT
00064 #ifndef LOG_ALERT
00065 #define LOG_ALERT 106
00066 #endif
00067 #define LOG_FATAL LOG_ALERT
00069 #ifndef LOG_EMERG
00070 #define LOG_EMERG 107
00071 #endif
00072 #define LOG_PANIC LOG_EMERG
00078 typedef enum { logFILE,
00079 logSYSLOG
00080 } eurephiaLOGTYPE;
00081
00085 typedef struct {
00086 eurephiaLOGTYPE logtype;
00087 unsigned int opened;
00088 char *destination;
00089 FILE *logfile;
00090 int loglevel;
00091 } eurephiaLOG;
00092
00093 #endif