rollingpolicy.h(3) | log4c | rollingpolicy.h(3) |
rollingpolicy.h -
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
#include <stdio.h>
#include <log4c/defs.h>
#include <log4c/layout.h>
struct log4c_rollingpolicy_type
log4c rollingpolicy type. Defines the interface a specific policy must
provide to the rollingfile appender.
#define ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG 0x05
typedef struct __log4c_rollingpolicy log4c_rollingpolicy_t
typedef struct log4c_rollingpolicy_type
log4c_rollingpolicy_type_t
log4c rollingpolicy type. Defines the interface a specific policy must
provide to the rollingfile appender.
LOG4C_API log4c_rollingpolicy_t *
log4c_rollingpolicy_get (const char *policy_name)
LOG4C_API const log4c_rollingpolicy_type_t *
log4c_rollingpolicy_type_set (const log4c_rollingpolicy_type_t
*a_type)
LOG4C_API void log4c_rollingpolicy_set_udata
(log4c_rollingpolicy_t *policyp, void *udatap)
LOG4C_API int log4c_rollingpolicy_init (log4c_rollingpolicy_t
*policyp, rollingfile_udata_t *rfup)
LOG4C_API int log4c_rollingpolicy_fini (log4c_rollingpolicy_t
*a_this)
LOG4C_API int log4c_rollingpolicy_is_triggering_event
(log4c_rollingpolicy_t *policyp, const log4c_logging_event_t
*evtp, long current_file_size)
LOG4C_API const log4c_rollingpolicy_type_t *
log4c_rollingpolicy_set_type (log4c_rollingpolicy_t
*a_rollingpolicy, const log4c_rollingpolicy_type_t *a_type)
LOG4C_API const log4c_rollingpolicy_type_t *
log4c_rollingpolicy_type_get (const char *a_name)
LOG4C_API void * log4c_rollingpolicy_get_udata (const
log4c_rollingpolicy_t *policyp)
LOG4C_API rollingfile_udata_t * log4c_rollingpolicy_get_rfudata (const
log4c_rollingpolicy_t *policyp)
Log4c rolling policy interface. Defines the interface for managing and providing rolling policies.
A rolling policy is used to confogure a rollingfile appender to tell it when to trigger a rolover event.
Parameters:
Returns:
log4c rollingpolicy type. Defines the interface a specific policy must provide to the rollingfile appender. Attributes description:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
Example code fragment:
const log4c_rollingpolicy_type_t log4c_rollingpolicy_type_sizewin = {
'sizewin',
sizewin_init,
sizewin_is_triggering_event,
sizewin_rollover
};
log4c_rollingpolicy_type_set(&log4c_rollingpolicy_type_sizewin);
Generated automatically by Doxygen for log4c from the source code.
Mon May 2 2011 | Version 1.2.1 |