layout.h(3) | log4c | layout.h(3) |
layout.h - Interface for user specific layout format of log4c_logging_event events.
#include <log4c/defs.h>
#include <log4c/logging_event.h>
#include <stdio.h>
struct log4c_layout_type
log4c layout type class
#define log4c_layout_type_define(a_type)
typedef struct __log4c_layout log4c_layout_t
typedef struct log4c_layout_type log4c_layout_type_t
log4c layout type class
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.
Todo
Todo
Helper macro to define static layout types.
Parameters
Warning
Deprecated
log4c layout class
log4c layout type class Attributes description:
Destructor for layout.
format a log4c_logging_event events to a string.
Parameters
Returns
Get a pointer to an existing layout.
Parameters
Returns
References log4c_layout_delete(), log4c_layout_new(), and log4c_layout_print().
Parameters
Returns
Parameters
Returns
Parameters
Returns
Constructor for layout.
prints the layout on a stream
Parameters
sets the layout type
Parameters
Returns
sets the layout user data
Parameters
Returns
Get a pointer to an existing layout type.
Parameters
Returns
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.
Parameters
Returns
Example code fragment:
const log4c_layout_type_t log4c_layout_type_xml = {
"s13_xml",
xml_format, };
log4c_layout_type_set(&log4c_layout_type_xml);
free all layout types
prints all the current registered layout types on a stream
Parameters
Generated automatically by Doxygen for log4c from the source code.
Thu Jan 19 2023 | Version 1.2.4 |