Logo Search packages:      
Sourcecode: log4c version File versions  Download package

appender.h File Reference


Detailed Description

Implement this interface for your own strategies for printing log statements.

Todo:
the appender interface needs a better configuration system depending on the layout type. The udata field is a just a trick.

Definition in file appender.h.

#include <log4c/defs.h>
#include <log4c/layout.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  log4c_appender_type
 log4c appender type class More...

Defines

#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

Functions

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_delete (log4c_appender_t *a_appender)
LOG4C_API log4c_appender_tlog4c_appender_get (const char *a_name)
LOG4C_API const log4c_layout_tlog4c_appender_get_layout (const 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 void * log4c_appender_get_udata (const log4c_appender_t *a_appender)
LOG4C_API log4c_appender_tlog4c_appender_new (const char *a_name)
LOG4C_API int log4c_appender_open (log4c_appender_t *a_appender)
LOG4C_API void log4c_appender_print (const log4c_appender_t *a_appender, FILE *a_stream)
LOG4C_API const log4c_layout_tlog4c_appender_set_layout (log4c_appender_t *a_appender, const log4c_layout_t *a_layout)
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_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 void log4c_appender_types_print (FILE *fp)

Variables

LOG4C_API struct __sd_factory * log4c_appender_factory


Generated by  Doxygen 1.6.0   Back to index