logging_event.h
Go to the documentation of this file.
/* $Id: logging_event.h,v 1.13 2013/09/29 17:38:18 valtri Exp $
*
* logging_event.h
*
* Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef log4c_logging_event_h
#define log4c_logging_event_h
#include <log4c/defs.h>
#include <log4c/buffer.h>
#include <log4c/location_info.h>
#if !defined(_WIN32) || defined(__MINGW32__) || defined (__MINGW64__)
#include <sys/time.h>
#endif
__LOG4C_BEGIN_DECLS
struct __log4c_category;
typedef struct
{
const char* evt_category;
int evt_priority;
const char* evt_msg;
const char* evt_rendered_msg;
log4c_buffer_t evt_buffer;
/* ok, this is probably not a good way to do it--should define a common type here
and have the base acessor function do the mapping
*/
#if !defined(_WIN32) || defined(__MINGW32__) || defined(__MINGW64__)
#define LOG4C_POSIX_TIMESTAMP 1
struct timeval evt_timestamp;
#else
FILETIME evt_timestamp;
#endif
const log4c_location_info_t* evt_loc;
} log4c_logging_event_t;
LOG4C_API log4c_logging_event_t* log4c_logging_event_new(
const char* a_category,
int a_priority,
const char* a_message);
LOG4C_API void log4c_logging_event_delete(log4c_logging_event_t* a_event);
__LOG4C_END_DECLS
#endif
location_info.h
The internal representation of caller location information.
log4c_logging_event_delete
void log4c_logging_event_delete(log4c_logging_event_t *a_event)
Definition: logging_event.c:39
log4c_logging_event_new
log4c_logging_event_t * log4c_logging_event_new(const char *a_category, int a_priority, const char *a_message)
Definition: logging_event.c:21
log4c_buffer_t
buffer object
Definition: buffer.h:32
log4c_logging_event_t
logging event object
Definition: logging_event.h:49
buffer.h
log4c buffer
log4c_location_info_t
logging location information
Definition: location_info.h:39