log4c
1.2.4
|
Implement this interface for your own strategies for printing log statements. More...
Go to the source code of this file.
Data Structures | |
struct | log4c_appender_type |
log4c appender type class More... | |
Macros | |
#define | log4c_appender_type_define(a_type) |
Typedefs | |
typedef struct __log4c_appender | log4c_appender_t |
typedef struct log4c_appender_type | log4c_appender_type_t |
log4c appender type class More... | |
Implement this interface for your own strategies for printing log statements.
#define log4c_appender_type_define | ( | a_type | ) |
Helper macro to define static appender types.
a_type | the log4c_appender_type_t object to define |
typedef struct __log4c_appender log4c_appender_t |
log4c appender class
typedef struct log4c_appender_type log4c_appender_type_t |
log4c appender type class
Attributes description:
name
appender type name open
append
close
int log4c_appender_append | ( | log4c_appender_t * | this, |
log4c_logging_event_t * | a_event | ||
) |
log in appender specific way.
a_appender | the log4c_appender object |
a_event | the log4c_logging_event_t object to log. |
int log4c_appender_close | ( | log4c_appender_t * | a_appender | ) |
closes the appender
a_appender | the log4c_appender_t object |
void log4c_appender_delete | ( | log4c_appender_t * | a_appender | ) |
Destructor for log4c_appender_t.
log4c_appender_t* log4c_appender_get | ( | const char * | a_name | ) |
Get a pointer to an existing appender.
a_name | the name of the appender to return. |
const log4c_layout_t* log4c_appender_get_layout | ( | const log4c_appender_t * | a_appender | ) |
a_appender | the log4c_appender_t object |
const char* log4c_appender_get_name | ( | const log4c_appender_t * | a_appender | ) |
a_appender | the log4c_appender_t object |
const log4c_appender_type_t* log4c_appender_get_type | ( | const log4c_appender_t * | a_appender | ) |
a_appender | the log4c_appender_t object |
void* log4c_appender_get_udata | ( | const log4c_appender_t * | a_appender | ) |
a_appender | the log4c_appender_t object |
log4c_appender_t* log4c_appender_new | ( | const char * | a_name | ) |
Constructor for log4c_appender_t.
int log4c_appender_open | ( | log4c_appender_t * | a_appender | ) |
opens the appender.
a_appender | the log4c_appender_t object |
void log4c_appender_print | ( | const log4c_appender_t * | a_appender, |
FILE * | a_stream | ||
) |
prints the appender on a stream
a_appender | the log4c_appender_t object |
a_stream | the stream |
const log4c_layout_t* log4c_appender_set_layout | ( | log4c_appender_t * | a_appender, |
const log4c_layout_t * | a_layout | ||
) |
sets the appender layout
a_appender | the log4c_appender_t object |
a_layout | the new appender layout |
const log4c_appender_type_t* log4c_appender_set_type | ( | log4c_appender_t * | a_appender, |
const log4c_appender_type_t * | a_type | ||
) |
sets the appender type
a_appender | the log4c_appender_t object |
a_type | the new appender type |
void* log4c_appender_set_udata | ( | log4c_appender_t * | a_appender, |
void * | a_udata | ||
) |
sets the appender user data
a_appender | the log4c_appender_t object |
a_udata | the new appender user data |
const log4c_appender_type_t* log4c_appender_type_get | ( | const char * | a_name | ) |
Get a pointer to an existing appender type.
a_name | the name of the appender type to return. |
const log4c_appender_type_t* log4c_appender_type_set | ( | const log4c_appender_type_t * | a_type | ) |
Use this function to register an appender type with log4c. Once this is done you may refer to this type by name both programmatically and in the log4c configuration file.
a_type | a pointer to the new appender type to set. |
Example code fragment:
void log4c_appender_types_free | ( | void | ) |
free all appender types
void log4c_appender_types_print | ( | FILE * | fp | ) |
prints all the current registered appender types on a stream
fp | the stream |