rollingpolicy_type_sizewin.h
Go to the documentation of this file.
/*
* rollingpolicy_type_sizewin.h
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef log4c_policy_type_sizewin_h
#define log4c_policy_type_sizewin_h
#include <log4c/defs.h>
#include <log4c/rollingpolicy.h>
__LOG4C_BEGIN_DECLS
LOG4C_API const log4c_rollingpolicy_type_t log4c_rollingpolicy_type_sizewin;
typedef struct __sizewin_udata rollingpolicy_sizewin_udata_t;
#define ROLLINGPOLICY_SIZE_DEFAULT_MAX_FILE_SIZE 1024*20
#define ROLLINGPOLICY_SIZE_DEFAULT_MAX_NUM_FILES 5
LOG4C_API rollingpolicy_sizewin_udata_t *sizewin_make_udata(void);
LOG4C_API int sizewin_udata_set_file_maxsize(
rollingpolicy_sizewin_udata_t * swup,
long max_size);
LOG4C_API int sizewin_udata_set_max_num_files(
rollingpolicy_sizewin_udata_t * swup,
long max_num);
LOG4C_API int sizewin_udata_set_appender(
rollingpolicy_sizewin_udata_t * swup,
log4c_appender_t* app);
__LOG4C_END_DECLS
#endif
log4c_appender_t
struct __log4c_appender log4c_appender_t
Definition appender.h:34
rollingpolicy.h
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
log4c_rollingpolicy_type_t
struct log4c_rollingpolicy_type log4c_rollingpolicy_type_t
log4c rollingpolicy type. Defines the interface a specific policy must provide to the rollingfile app...
sizewin_make_udata
rollingpolicy_sizewin_udata_t * sizewin_make_udata(void)
Definition rollingpolicy_type_sizewin.c:277
sizewin_udata_set_file_maxsize
int sizewin_udata_set_file_maxsize(rollingpolicy_sizewin_udata_t *swup, long max_size)
Definition rollingpolicy_type_sizewin.c:292
rollingpolicy_sizewin_udata_t
struct __sizewin_udata rollingpolicy_sizewin_udata_t
Definition rollingpolicy_type_sizewin.h:39
sizewin_udata_set_appender
int sizewin_udata_set_appender(rollingpolicy_sizewin_udata_t *swup, log4c_appender_t *app)
sizewin_udata_set_max_num_files
int sizewin_udata_set_max_num_files(rollingpolicy_sizewin_udata_t *swup, long max_num)
Definition rollingpolicy_type_sizewin.c:303