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);
86 LOG4C_API int rollingfile_udata_set_files_prefix(
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