8 #ifndef log4c_rollingpolicy_h
9 #define log4c_rollingpolicy_h
22 #include <log4c/defs.h>
27 struct __log4c_rollingpolicy;
35 #define ROLLINGFILE_DEFAULT_LOG_DIR "."
36 #define ROLLINGFILE_DEFAULT_LOG_PREFIX "log"
38 typedef struct __rollingfile_udata rollingfile_udata_t;
58 long current_file_size );
69 const char* policy_name);
111 rollingfile_udata_t* rfup );
132 LOG4C_API
int log4c_rollingpolicy_is_triggering_event(
135 long current_file_size );
147 #define ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG 0x05
177 LOG4C_API
void* log4c_rollingpolicy_get_udata(
185 LOG4C_API rollingfile_udata_t* log4c_rollingpolicy_get_rfudata(
196 LOG4C_API
void log4c_rollingpolicy_types_free(
void);
197 LOG4C_API
void log4c_rollingpolicy_types_print(FILE *fp);
202 LOG4C_API
struct __sd_factory* log4c_rollingpolicy_factory;