log4c  1.2.1
rc.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * rc.h
4  *
5  * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef __log4c_rc_h
11 #define __log4c_rc_h
12 
20 #include <log4c/defs.h>
21 
22 __LOG4C_BEGIN_DECLS
23 
34 typedef struct
35 {
36  struct
37  {
38  int nocleanup;
39  int bufsize;
40  int debug;
41  int reread;
42  } config;
43 
44 } log4c_rc_t;
45 
49 LOG4C_API log4c_rc_t * const log4c_rc;
50 
56 LOG4C_API int log4c_load(const char* a_filename);
57 
61 LOG4C_API int log4c_rc_load(log4c_rc_t* a_rc, const char* a_filename);
62 
63 /*
64  * Rereads any log4crc files that have changed
65  */
66 LOG4C_API void log4c_reread(void);
67 
68 __LOG4C_END_DECLS
69 
70 #endif
sizewin_udata_set_max_num_files
LOG4C_API int sizewin_udata_set_max_num_files(rollingpolicy_sizewin_udata_t *swup, long max_num)
Definition: rollingpolicy_type_sizewin.c:303
category.h
central class in the log4c package.
log4c_layout_t
struct __log4c_layout log4c_layout_t
Definition: layout.h:36
appender_type_rollingfile.h
Log4c rolling file appender interface.
log4c_rc
LOG4C_API log4c_rc_t *const log4c_rc
Definition: rc.h:49
log4c_rollingpolicy_get_rfudata
LOG4C_API rollingfile_udata_t * log4c_rollingpolicy_get_rfudata(const log4c_rollingpolicy_t *policyp)
Definition: rollingpolicy.c:220
log4c_rollingpolicy_type_get
const LOG4C_API log4c_rollingpolicy_type_t * log4c_rollingpolicy_type_get(const char *a_name)
Definition: rollingpolicy.c:243
log4c_appender_t
struct __log4c_appender log4c_appender_t
Definition: appender.h:34
log4c_layout_get
LOG4C_API log4c_layout_t * log4c_layout_get(const char *a_name)
Definition: layout.c:94
log4c_category_set_appender
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_category_set_priority
LOG4C_API int log4c_category_set_priority(log4c_category_t *a_category, int a_priority)
Definition: category.c:146
rc.h
log4c resource configuration
log4c_rollingpolicy_get
LOG4C_API log4c_rollingpolicy_t * log4c_rollingpolicy_get(const char *policy_name)
Definition: rollingpolicy.c:59
log4c_rollingpolicy_init
LOG4C_API int log4c_rollingpolicy_init(log4c_rollingpolicy_t *policyp, rollingfile_udata_t *rfup)
Definition: rollingpolicy.c:129
rollingpolicy_type_sizewin.h
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rol...
log4c_appender_get
LOG4C_API log4c_appender_t * log4c_appender_get(const char *a_name)
Definition: appender.c:98
log4c_rollingpolicy_set_type
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
log4c_rollingpolicy_t
struct __log4c_rollingpolicy log4c_rollingpolicy_t
Definition: rollingpolicy.h:32
log4c_category_t
struct __log4c_category log4c_category_t
Definition: category.h:37
rollingfile_udata_set_logdir
LOG4C_API int rollingfile_udata_set_logdir(rollingfile_udata_t *rfudatap, char *logdir)
Definition: appender_type_rollingfile.c:253
log4c_appender_set_layout
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
log4c_rc_t
resource configuration object
Definition: rc.h:34
log4c_appender_type_get
const LOG4C_API log4c_appender_type_t * log4c_appender_type_get(const char *a_name)
Definition: appender.c:65
sizewin_make_udata
LOG4C_API rollingpolicy_sizewin_udata_t * sizewin_make_udata(void)
Definition: rollingpolicy_type_sizewin.c:277
log4c_layout_type_get
const LOG4C_API log4c_layout_type_t * log4c_layout_type_get(const char *a_name)
Definition: layout.c:62
log4c_load
LOG4C_API int log4c_load(const char *a_filename)
Definition: rc.c:369
rollingpolicy.h
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
rollingfile_make_udata
LOG4C_API rollingfile_udata_t * rollingfile_make_udata(void)
Definition: appender_type_rollingfile.c:244
log4c_appender_set_type
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
layout.h
Interface for user specific layout format of log4c_logging_event events.
log4c_rollingpolicy_set_udata
LOG4C_API void log4c_rollingpolicy_set_udata(log4c_rollingpolicy_t *policyp, void *udatap)
Definition: rollingpolicy.c:256
log4c_priority_to_int
LOG4C_API int log4c_priority_to_int(const char *a_priority_name)
Definition: priority.c:42
log4c_category_set_additivity
LOG4C_API int log4c_category_set_additivity(log4c_category_t *a_category, int a_additivity)
Definition: category.c:178
log4c_appender_set_udata
LOG4C_API void * log4c_appender_set_udata(log4c_appender_t *a_appender, void *a_udata)
Definition: appender.c:210
log4c_layout_set_type
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
rollingpolicy_sizewin_udata_t
struct __sizewin_udata rollingpolicy_sizewin_udata_t
Definition: rollingpolicy_type_sizewin.h:39
sizewin_udata_set_file_maxsize
LOG4C_API int sizewin_udata_set_file_maxsize(rollingpolicy_sizewin_udata_t *swup, long max_size)
Definition: rollingpolicy_type_sizewin.c:292
appender.h
Implement this interface for your own strategies for printing log statements.
log4c_rollingpolicy_get_udata
LOG4C_API void * log4c_rollingpolicy_get_udata(const log4c_rollingpolicy_t *policyp)
Definition: rollingpolicy.c:210
log4c_category_get
LOG4C_API log4c_category_t * log4c_category_get(const char *a_name)
Definition: category.c:48
rollingfile_udata_set_files_prefix
LOG4C_API int rollingfile_udata_set_files_prefix(rollingfile_udata_t *rfudatap, char *prefix)
Definition: appender_type_rollingfile.c:268
rollingfile_udata_set_policy
LOG4C_API int rollingfile_udata_set_policy(rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp)
Definition: appender_type_rollingfile.c:235