appender.h(3) | log4c | appender.h(3) |
appender.h -
Implement this interface for your own strategies for printing log statements.
#include <log4c/defs.h>
#include <log4c/layout.h>
#include <stdio.h>
struct log4c_appender_type
log4c appender type class
#define log4c_appender_type_define(a_type)
typedef struct __log4c_appender log4c_appender_t
typedef struct log4c_appender_type log4c_appender_type_t
log4c appender type class
LOG4C_API const log4c_appender_type_t *
log4c_appender_type_get (const char *a_name)
LOG4C_API const log4c_appender_type_t * log4c_appender_type_set
(const log4c_appender_type_t *a_type)
LOG4C_API log4c_appender_t * log4c_appender_get (const char
*a_name)
LOG4C_API log4c_appender_t * log4c_appender_new (const char
*a_name)
LOG4C_API void log4c_appender_delete (log4c_appender_t
*a_appender)
LOG4C_API const char * log4c_appender_get_name (const
log4c_appender_t *a_appender)
LOG4C_API const log4c_appender_type_t * log4c_appender_get_type
(const log4c_appender_t *a_appender)
LOG4C_API const log4c_layout_t * log4c_appender_get_layout
(const log4c_appender_t *a_appender)
LOG4C_API void * log4c_appender_get_udata (const
log4c_appender_t *a_appender)
LOG4C_API const log4c_appender_type_t * log4c_appender_set_type
(log4c_appender_t *a_appender, const log4c_appender_type_t
*a_type)
LOG4C_API void * log4c_appender_set_udata (log4c_appender_t
*a_appender, void *a_udata)
LOG4C_API const log4c_layout_t * log4c_appender_set_layout
(log4c_appender_t *a_appender, const log4c_layout_t *a_layout)
LOG4C_API int log4c_appender_open (log4c_appender_t *a_appender)
LOG4C_API int log4c_appender_append (log4c_appender_t
*a_appender, log4c_logging_event_t *a_event)
LOG4C_API int log4c_appender_close (log4c_appender_t
*a_appender)
LOG4C_API void log4c_appender_print (const log4c_appender_t
*a_appender, FILE *a_stream)
LOG4C_API void log4c_appender_types_print (FILE *fp)
Implement this interface for your own strategies for printing log statements.
Todo
Parameters:
Warning:
Deprecated
log4c appender type class Attributes description:
Parameters:
Bug
Parameters:
Returns:
Parameters:
Returns:
Returns:
Returns:
Returns:
Returns:
Parameters:
Parameters:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Example code fragment:
const log4c_appender_type_t log4c_appender_type_s13_file = {
's13_file',
s13_file_open,
s13_file_append,
s13_file_close,
};
log4c_appender_type_set(&log4c_appender_type_s13_file);
Parameters:
Generated automatically by Doxygen for log4c from the source code.
Mon May 2 2011 | Version 1.2.1 |