00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef log4c_logging_event_h
00011 #define log4c_logging_event_h
00012
00023 #include <log4c/defs.h>
00024 #include <log4c/location_info.h>
00025 #include <sys/time.h>
00026
00027 __LOG4C_BEGIN_DECLS
00028
00029 struct __log4c_category;
00030
00044 typedef struct
00045 {
00046 const char* evt_category;
00047 int evt_priority;
00048 const char* evt_msg;
00049 const char* evt_rendered_msg;
00050 struct timeval evt_timestamp;
00051 const log4c_location_info_t* evt_loc;
00052
00053 } log4c_logging_event_t;
00054
00064 extern log4c_logging_event_t* log4c_logging_event_new(
00065 const char* a_category,
00066 int a_priority,
00067 const char* a_message);
00072 extern void log4c_logging_event_delete(log4c_logging_event_t* a_event);
00073
00074 __LOG4C_END_DECLS
00075
00076 #endif