log4c  1.2.4
appender_type_rollingfile.h
Go to the documentation of this file.
1 /* $Id: appender_type_rollingfile.h
2  *
3  * appender_type_rollingfile.h
4  *
5  *
6  * See the COPYING file for the terms of usage and distribution.
7  */
8 
9 #ifndef log4c_appender_type_rollingfile_h
10 #define log4c_appender_type_rollingfile_h
11 
50 #include <log4c/defs.h>
51 #include <log4c/appender.h>
52 #include <log4c/rollingpolicy.h>
53 
54 __LOG4C_BEGIN_DECLS
55 
64 
69 LOG4C_API rollingfile_udata_t *rollingfile_make_udata(void);
70 
77 LOG4C_API int rollingfile_udata_set_logdir(
78  rollingfile_udata_t *rfudatap,
79  const char* logdir);
87  rollingfile_udata_t *rfudatap,
88  const char * prefix);
95 LOG4C_API int rollingfile_udata_set_policy(rollingfile_udata_t* rfudatap,
96  log4c_rollingpolicy_t* policyp);
102 LOG4C_API const char* rollingfile_udata_get_logdir(rollingfile_udata_t* rfudatap);
103 
109 LOG4C_API const char* rollingfile_udata_get_files_prefix(
110  rollingfile_udata_t* rfudatap);
111 
117 LOG4C_API long rollingfile_get_current_file_size( rollingfile_udata_t* rfudatap);
118 
119 __LOG4C_END_DECLS
120 
121 #endif
int rollingfile_udata_set_policy(rollingfile_udata_t *rfudatap, log4c_rollingpolicy_t *policyp)
Definition: appender_type_rollingfile.c:233
struct __log4c_rollingpolicy log4c_rollingpolicy_t
Definition: rollingpolicy.h:32
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
const char * rollingfile_udata_get_files_prefix(rollingfile_udata_t *rfudatap)
Definition: appender_type_rollingfile.c:274
log4c appender type class
Definition: appender.h:46
rollingfile_udata_t * rollingfile_make_udata(void)
Definition: appender_type_rollingfile.c:242
long rollingfile_get_current_file_size(rollingfile_udata_t *rfudatap)
Definition: appender_type_rollingfile.c:281
int rollingfile_udata_set_logdir(rollingfile_udata_t *rfudatap, const char *logdir)
Definition: appender_type_rollingfile.c:251
const char * rollingfile_udata_get_logdir(rollingfile_udata_t *rfudatap)
Definition: appender_type_rollingfile.c:259
int rollingfile_udata_set_files_prefix(rollingfile_udata_t *rfudatap, const char *prefix)
Definition: appender_type_rollingfile.c:266
Implement this interface for your own strategies for printing log statements.
__LOG4C_BEGIN_DECLS const log4c_appender_type_t log4c_appender_type_rollingfile
Definition: appender_type_rollingfile.h:63