Go to the documentation of this file.
10 #ifndef log4c_layout_h
11 #define log4c_layout_h
25 #include <log4c/defs.h>
31 struct __log4c_layout;
184 # define log4c_layout_type_define(a_type) \
185 typedef int log4c_layout_type_define_##a_type __attribute__((deprecated)); \
186 static log4c_layout_type_define_##a_type __unsused_var __attribute__((unused));
188 # define log4c_layout_type_define(a_type)
195 LOG4C_API
struct __sd_factory* log4c_layout_factory;
the internal representation of logging events.
const log4c_layout_type_t * log4c_layout_get_type(const log4c_layout_t *a_layout)
Definition: layout.c:147
struct __log4c_layout log4c_layout_t
Definition: layout.h:36
void log4c_layout_types_free(void)
Definition: layout.c:41
void * log4c_layout_get_udata(const log4c_layout_t *a_layout)
Definition: layout.c:168
The priority class provides importance levels with which one can categorize log messages.
void log4c_layout_types_print(FILE *fp)
Definition: layout.c:48
log4c_layout_t * log4c_layout_get(const char *a_name)
Definition: layout.c:95
void * log4c_layout_set_udata(log4c_layout_t *a_layout, void *a_udata)
Definition: layout.c:174
const log4c_layout_type_t * log4c_layout_type_set(const log4c_layout_type_t *a_type)
Definition: layout.c:77
void log4c_layout_delete(log4c_layout_t *a_layout)
Definition: layout.c:131
log4c layout type class
Definition: layout.h:46
Implement a basic layout.
Implement a dated layout.
const log4c_layout_type_t * log4c_layout_type_get(const char *a_name)
Definition: layout.c:63
logging event object
Definition: logging_event.h:50
Interface for user specific layout format of log4c_logging_event events.
void log4c_layout_print(const log4c_layout_t *a_layout, FILE *a_stream)
Definition: layout.c:204
log4c_layout_t * log4c_layout_new(const char *a_name)
Definition: layout.c:115
struct log4c_layout_type log4c_layout_type_t
log4c layout type class
const char * log4c_layout_get_name(const log4c_layout_t *a_layout)
Definition: layout.c:141
const char * log4c_layout_format(const log4c_layout_t *a_layout, const log4c_logging_event_t *a_event)
Definition: layout.c:187
const log4c_layout_type_t * log4c_layout_set_type(log4c_layout_t *a_layout, const log4c_layout_type_t *a_type)
Definition: layout.c:153