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);
LOG4C_API int sizewin_udata_set_max_num_files(rollingpolicy_sizewin_udata_t *swup, long max_num)
Definition: rollingpolicy_type_sizewin.c:303
central class in the log4c package.
struct __log4c_layout log4c_layout_t
Definition: layout.h:36
Log4c rolling file appender interface.
LOG4C_API log4c_rc_t *const log4c_rc
Definition: rc.h:49
LOG4C_API rollingfile_udata_t * log4c_rollingpolicy_get_rfudata(const log4c_rollingpolicy_t *policyp)
Definition: rollingpolicy.c:220
const LOG4C_API log4c_rollingpolicy_type_t * log4c_rollingpolicy_type_get(const char *a_name)
Definition: rollingpolicy.c:243
struct __log4c_appender log4c_appender_t
Definition: appender.h:34
LOG4C_API log4c_layout_t * log4c_layout_get(const char *a_name)
Definition: layout.c:94
LOG4C_API const struct __log4c_appender * log4c_category_set_appender(log4c_category_t *a_category, struct __log4c_appender *a_appender)
Definition: category.c:163
LOG4C_API int log4c_category_set_priority(log4c_category_t *a_category, int a_priority)
Definition: category.c:146
log4c resource configuration
LOG4C_API log4c_rollingpolicy_t * log4c_rollingpolicy_get(const char *policy_name)
Definition: rollingpolicy.c:59
LOG4C_API int log4c_rollingpolicy_init(log4c_rollingpolicy_t *policyp, rollingfile_udata_t *rfup)
Definition: rollingpolicy.c:129
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rol...
LOG4C_API log4c_appender_t * log4c_appender_get(const char *a_name)
Definition: appender.c:98
const LOG4C_API log4c_rollingpolicy_type_t * log4c_rollingpolicy_set_type(log4c_rollingpolicy_t *a_rollingpolicy, const log4c_rollingpolicy_type_t *a_type)
Definition: rollingpolicy.c:263
struct __log4c_rollingpolicy log4c_rollingpolicy_t
Definition: rollingpolicy.h:32
struct __log4c_category log4c_category_t
Definition: category.h:37
LOG4C_API int rollingfile_udata_set_logdir(rollingfile_udata_t *rfudatap, char *logdir)
Definition: appender_type_rollingfile.c:253
const LOG4C_API log4c_layout_t * log4c_appender_set_layout(log4c_appender_t *a_appender, const log4c_layout_t *a_layout)
Definition: appender.c:195
resource configuration object
Definition: rc.h:34
const LOG4C_API log4c_appender_type_t * log4c_appender_type_get(const char *a_name)
Definition: appender.c:65
LOG4C_API rollingpolicy_sizewin_udata_t * sizewin_make_udata(void)
Definition: rollingpolicy_type_sizewin.c:277
const LOG4C_API log4c_layout_type_t * log4c_layout_type_get(const char *a_name)
Definition: layout.c:62
LOG4C_API int log4c_load(const char *a_filename)
Definition: rc.c:369
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
LOG4C_API rollingfile_udata_t * rollingfile_make_udata(void)
Definition: appender_type_rollingfile.c:244
const LOG4C_API log4c_appender_type_t * log4c_appender_set_type(log4c_appender_t *a_appender, const log4c_appender_type_t *a_type)
Definition: appender.c:180
Interface for user specific layout format of log4c_logging_event events.
LOG4C_API void log4c_rollingpolicy_set_udata(log4c_rollingpolicy_t *policyp, void *udatap)
Definition: rollingpolicy.c:256
LOG4C_API int log4c_priority_to_int(const char *a_priority_name)
Definition: priority.c:42
LOG4C_API int log4c_category_set_additivity(log4c_category_t *a_category, int a_additivity)
Definition: category.c:178
LOG4C_API void * log4c_appender_set_udata(log4c_appender_t *a_appender, void *a_udata)
Definition: appender.c:210
const LOG4C_API log4c_layout_type_t * log4c_layout_set_type(log4c_layout_t *a_layout, const log4c_layout_type_t *a_type)
Definition: layout.c:152
struct __sizewin_udata rollingpolicy_sizewin_udata_t
Definition: rollingpolicy_type_sizewin.h:39
LOG4C_API int sizewin_udata_set_file_maxsize(rollingpolicy_sizewin_udata_t *swup, long max_size)
Definition: rollingpolicy_type_sizewin.c:292
Implement this interface for your own strategies for printing log statements.
LOG4C_API void * log4c_rollingpolicy_get_udata(const log4c_rollingpolicy_t *policyp)
Definition: rollingpolicy.c:210
LOG4C_API log4c_category_t * log4c_category_get(const char *a_name)
Definition: category.c:48
LOG4C_API int rollingfile_udata_set_files_prefix(rollingfile_udata_t *rfudatap, char *prefix)
Definition: appender_type_rollingfile.c:268
LOG4C_API int rollingfile_udata_set_policy(rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp)
Definition: appender_type_rollingfile.c:235