Detailed Description

A rolling policy is used to confogure a rollingfile appender to tell it when to trigger a rolover event.

Define Documentation

#define ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG 0x05

Effect a rollover according to policyp on the given file stream.

Parameters:

policyp pointer to the rolling policy
fp filestream to rollover.

Returns:

zero if successful, non-zero otherwise. The policy can return an indication that something went wrong but that the rollingfile appender can stull go ahead and log by returning an error code <= ROLLINGPOLICY_ROLLOVER_ERR_CAN_LOG. Anything greater than means that the rolling file appender will not try to log it's message.

Typedef Documentation

typedef struct __log4c_rollingpolicy log4c_rollingpolicy_t

log4c rollingpolicy type

Function Documentation

Call the un initialization code of a rolling policy. This will call the fini routine of the particular rollingpolicy type to allow it to free up resources. If the call to fini in the rollingpolicy type fails then the rollingpolicy is not uninitialized. Try again later model...