Logo Search packages:      
Sourcecode: log4c version File versions  Download package

rollingpolicy.h File Reference


Detailed Description

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.

Definition in file rollingpolicy.h.

#include <stdio.h>
#include <log4c/defs.h>
#include <log4c/layout.h>

Go to the source code of this file.

Classes

struct  log4c_rollingpolicy_type
 log4c rollingpolicy type. Defines the interface a specific policy must provide to the rollingfile appender. More...

Defines

#define ROLLINGFILE_DEFAULT_LOG_DIR   "."
#define ROLLINGFILE_DEFAULT_LOG_PREFIX   "log"
#define ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG   0x05

Typedefs

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.
typedef struct __rollingfile_udata rollingfile_udata_t

Functions

LOG4C_API void log4c_rollingpolicy_delete (log4c_rollingpolicy_t *a_this)
LOG4C_API int log4c_rollingpolicy_fini (log4c_rollingpolicy_t *a_this)
LOG4C_API log4c_rollingpolicy_tlog4c_rollingpolicy_get (const char *policy_name)
LOG4C_API void * log4c_rollingpolicy_get_name (const log4c_rollingpolicy_t *a_this)
LOG4C_API rollingfile_udata_t * log4c_rollingpolicy_get_rfudata (const log4c_rollingpolicy_t *policyp)
LOG4C_API void * log4c_rollingpolicy_get_udata (const log4c_rollingpolicy_t *policyp)
LOG4C_API int log4c_rollingpolicy_init (log4c_rollingpolicy_t *policyp, rollingfile_udata_t *rfup)
LOG4C_API int log4c_rollingpolicy_is_initialized (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 log4c_rollingpolicy_tlog4c_rollingpolicy_new (const char *a_name)
LOG4C_API void log4c_rollingpolicy_print (const log4c_rollingpolicy_t *a_this, FILE *a_stream)
LOG4C_API int log4c_rollingpolicy_rollover (log4c_rollingpolicy_t *policyp, FILE **fp)
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 void log4c_rollingpolicy_set_udata (log4c_rollingpolicy_t *policyp, void *udatap)
LOG4C_API const
log4c_rollingpolicy_type_t
log4c_rollingpolicy_type_get (const char *a_name)
LOG4C_API const
log4c_rollingpolicy_type_t
log4c_rollingpolicy_type_set (const log4c_rollingpolicy_type_t *a_type)
LOG4C_API void log4c_rollingpolicy_types_print (FILE *fp)

Variables

LOG4C_API struct __sd_factory * log4c_rollingpolicy_factory


Generated by  Doxygen 1.6.0   Back to index