Go to the documentation of this file.
20 #include <log4c/defs.h>
56 LOG4C_API
int log4c_load(
const char* a_filename);
61 LOG4C_API
int log4c_rc_load(
log4c_rc_t* a_rc,
const char* a_filename);
66 LOG4C_API
void log4c_reread(
void);
central class in the log4c package.
struct __log4c_layout log4c_layout_t
Definition: layout.h:36
Log4c rolling file appender interface.
rollingfile_udata_t * rollingfile_make_udata(void)
Definition: appender_type_rollingfile.c:242
log4c_appender_t * log4c_appender_get(const char *a_name)
Definition: appender.c:101
const log4c_rollingpolicy_type_t * log4c_rollingpolicy_set_type(log4c_rollingpolicy_t *a_rollingpolicy, const log4c_rollingpolicy_type_t *a_type)
Definition: rollingpolicy.c:270
struct __log4c_appender log4c_appender_t
Definition: appender.h:34
const log4c_layout_t * log4c_appender_set_layout(log4c_appender_t *a_appender, const log4c_layout_t *a_layout)
Definition: appender.c:198
int sizewin_udata_set_max_num_files(rollingpolicy_sizewin_udata_t *swup, long max_num)
Definition: rollingpolicy_type_sizewin.c:303
log4c resource configuration
int log4c_rollingpolicy_init(log4c_rollingpolicy_t *policyp, rollingfile_udata_t *rfup)
Definition: rollingpolicy.c:136
const log4c_appender_type_t * log4c_appender_type_get(const char *a_name)
Definition: appender.c:68
int log4c_priority_to_int(const char *a_priority_name)
Definition: priority.c:42
void * log4c_appender_set_udata(log4c_appender_t *a_appender, void *a_udata)
Definition: appender.c:213
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rol...
log4c_layout_t * log4c_layout_get(const char *a_name)
Definition: layout.c:96
int rollingfile_udata_set_logdir(rollingfile_udata_t *rfudatap, const char *logdir)
Definition: appender_type_rollingfile.c:251
int rollingfile_udata_set_files_prefix(rollingfile_udata_t *rfudatap, const char *prefix)
Definition: appender_type_rollingfile.c:266
struct __log4c_rollingpolicy log4c_rollingpolicy_t
Definition: rollingpolicy.h:32
const struct __log4c_appender * log4c_category_set_appender(log4c_category_t *a_category, struct __log4c_appender *a_appender)
Definition: category.c:165
int rollingfile_udata_set_policy(rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp)
Definition: appender_type_rollingfile.c:233
struct __log4c_category log4c_category_t
Definition: category.h:37
rollingpolicy_sizewin_udata_t * sizewin_make_udata(void)
Definition: rollingpolicy_type_sizewin.c:277
int log4c_category_set_priority(log4c_category_t *a_category, int a_priority)
Definition: category.c:148
void log4c_rollingpolicy_set_udata(log4c_rollingpolicy_t *policyp, void *udatap)
Definition: rollingpolicy.c:263
resource configuration object
Definition: rc.h:34
log4c_rc_t *const log4c_rc
Definition: rc.h:49
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
const log4c_rollingpolicy_type_t * log4c_rollingpolicy_type_get(const char *a_name)
Definition: rollingpolicy.c:250
const log4c_appender_type_t * log4c_appender_set_type(log4c_appender_t *a_appender, const log4c_appender_type_t *a_type)
Definition: appender.c:183
int sizewin_udata_set_file_maxsize(rollingpolicy_sizewin_udata_t *swup, long max_size)
Definition: rollingpolicy_type_sizewin.c:292
log4c_category_t * log4c_category_get(const char *a_name)
Definition: category.c:50
const log4c_layout_type_t * log4c_layout_type_get(const char *a_name)
Definition: layout.c:64
Interface for user specific layout format of log4c_logging_event events.
void * log4c_rollingpolicy_get_udata(const log4c_rollingpolicy_t *policyp)
Definition: rollingpolicy.c:217
int log4c_load(const char *a_filename)
Definition: rc.c:383
struct __sizewin_udata rollingpolicy_sizewin_udata_t
Definition: rollingpolicy_type_sizewin.h:39
Implement this interface for your own strategies for printing log statements.
int log4c_category_set_additivity(log4c_category_t *a_category, int a_additivity)
Definition: category.c:180
log4c_rollingpolicy_t * log4c_rollingpolicy_get(const char *policy_name)
Definition: rollingpolicy.c:66
const log4c_layout_type_t * log4c_layout_set_type(log4c_layout_t *a_layout, const log4c_layout_type_t *a_type)
Definition: layout.c:154
rollingfile_udata_t * log4c_rollingpolicy_get_rfudata(const log4c_rollingpolicy_t *policyp)
Definition: rollingpolicy.c:227