log4c
1.2.1
log4c
logging_event.h
Go to the documentation of this file.
1
/* $Id$
2
*
3
* logging_event.h
4
*
5
* Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef log4c_logging_event_h
11
#define log4c_logging_event_h
12
23
#include <log4c/defs.h>
24
#include <
log4c/buffer.h
>
25
#include <
log4c/location_info.h
>
26
#ifndef _WIN32
27
#include <sys/time.h>
28
#endif
29
30
__LOG4C_BEGIN_DECLS
31
32
struct
__log4c_category;
33
49
typedef
struct
50
{
51
const
char
* evt_category;
52
int
evt_priority;
53
const
char
* evt_msg;
54
const
char
* evt_rendered_msg;
55
log4c_buffer_t
evt_buffer;
56
/* ok, this is probably not a good way to do it--should define a common type here
57
and have the base acessor function do the mapping
58
*/
59
#ifndef _WIN32
60
struct
timeval evt_timestamp;
61
#else
62
FILETIME evt_timestamp;
63
#endif
64
const
log4c_location_info_t
* evt_loc;
65
66
}
log4c_logging_event_t
;
67
77
LOG4C_API
log4c_logging_event_t
*
log4c_logging_event_new
(
78
const
char
* a_category,
79
int
a_priority,
80
const
char
* a_message);
85
LOG4C_API
void
log4c_logging_event_delete
(
log4c_logging_event_t
* a_event);
86
87
__LOG4C_END_DECLS
88
89
#endif
logging_event.h
the internal representation of logging events.
category.h
central class in the log4c package.
location_info.h
The internal representation of caller location information.
buffer.h
log4c buffer
log4c_logging_event_new
LOG4C_API log4c_logging_event_t * log4c_logging_event_new(const char *a_category, int a_priority, const char *a_message)
Definition:
logging_event.c:18
log4c_logging_event_t
logging event object
Definition:
logging_event.h:49
log4c_logging_event_delete
LOG4C_API void log4c_logging_event_delete(log4c_logging_event_t *a_event)
Definition:
logging_event.c:36
log4c_buffer_t
buffer object
Definition:
buffer.h:32
log4c_location_info_t
logging location information
Definition:
location_info.h:39
Generated by
1.8.17