|
log4c
1.2.4
|
Interface for user specific layout format of log4c_logging_event events. More...


Go to the source code of this file.
Data Structures | |
| struct | log4c_layout_type |
| log4c layout type class More... | |
Macros | |
| #define | log4c_layout_type_define(a_type) |
Typedefs | |
| typedef struct __log4c_layout | log4c_layout_t |
| typedef struct log4c_layout_type | log4c_layout_type_t |
| log4c layout type class More... | |
Functions | |
| const log4c_layout_type_t * | log4c_layout_type_get (const char *a_name) |
| const log4c_layout_type_t * | log4c_layout_type_set (const log4c_layout_type_t *a_type) |
| log4c_layout_t * | log4c_layout_get (const char *a_name) |
| log4c_layout_t * | log4c_layout_new (const char *a_name) |
| void | log4c_layout_delete (log4c_layout_t *a_layout) |
| const char * | log4c_layout_get_name (const log4c_layout_t *a_layout) |
| const log4c_layout_type_t * | log4c_layout_get_type (const log4c_layout_t *a_layout) |
| const log4c_layout_type_t * | log4c_layout_set_type (log4c_layout_t *a_layout, const log4c_layout_type_t *a_type) |
| void * | log4c_layout_get_udata (const log4c_layout_t *a_layout) |
| void * | log4c_layout_set_udata (log4c_layout_t *a_layout, void *a_udata) |
| const char * | log4c_layout_format (const log4c_layout_t *a_layout, const log4c_logging_event_t *a_event) |
| void | log4c_layout_print (const log4c_layout_t *a_layout, FILE *a_stream) |
| void | log4c_layout_types_free (void) |
| void | log4c_layout_types_print (FILE *fp) |
Interface for user specific layout format of log4c_logging_event events.
| #define log4c_layout_type_define | ( | a_type | ) |
Helper macro to define static layout types.
| a_type | the log4c_layout_type_t object to define |
| typedef struct __log4c_layout log4c_layout_t |
log4c layout class
| typedef struct log4c_layout_type log4c_layout_type_t |
log4c layout type class
Attributes description:
name layout type name format | void log4c_layout_delete | ( | log4c_layout_t * | a_layout | ) |
Destructor for layout.
| const char* log4c_layout_format | ( | const log4c_layout_t * | a_layout, |
| const log4c_logging_event_t * | a_event | ||
| ) |
format a log4c_logging_event events to a string.
| a_layout | the log4c_layout_t object |
| a_event | a logging_event_t object |
| log4c_layout_t* log4c_layout_get | ( | const char * | a_name | ) |
Get a pointer to an existing layout.
| a_name | the name of the layout to return. |
| const char* log4c_layout_get_name | ( | const log4c_layout_t * | a_layout | ) |
| a_layout | the log4c_layout_t object |
| const log4c_layout_type_t* log4c_layout_get_type | ( | const log4c_layout_t * | a_layout | ) |
| a_layout | the log4c_layout_t object |
| void* log4c_layout_get_udata | ( | const log4c_layout_t * | a_layout | ) |
| a_layout | the log4c_layout_t object |
| log4c_layout_t* log4c_layout_new | ( | const char * | a_name | ) |
Constructor for layout.
| void log4c_layout_print | ( | const log4c_layout_t * | a_layout, |
| FILE * | a_stream | ||
| ) |
prints the layout on a stream
| a_layout | the log4c_layout_t object |
| a_stream | the stream |
| const log4c_layout_type_t* log4c_layout_set_type | ( | log4c_layout_t * | a_layout, |
| const log4c_layout_type_t * | a_type | ||
| ) |
sets the layout type
| a_layout | the log4c_layout_t object |
| a_type | the new layout type |
| void* log4c_layout_set_udata | ( | log4c_layout_t * | a_layout, |
| void * | a_udata | ||
| ) |
sets the layout user data
| a_layout | the log4c_layout_t object |
| a_udata | the new layout user data |
| const log4c_layout_type_t* log4c_layout_type_get | ( | const char * | a_name | ) |
Get a pointer to an existing layout type.
| a_name | the name of the layout type to return. |
| const log4c_layout_type_t* log4c_layout_type_set | ( | const log4c_layout_type_t * | a_type | ) |
Use this function to register a layout type with log4c. Once this is done you may refer to this type by name both programatically and in the log4c configuration file.
| a_type | a pointer to the new layout type to set. |
Example code fragment:
| void log4c_layout_types_free | ( | void | ) |
free all layout types
| void log4c_layout_types_print | ( | FILE * | fp | ) |
prints all the current registered layout types on a stream
| fp | the stream |
1.8.3.1