Log4g Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Log4gRollingFileAppenderLog4gRollingFileAppender — Backup log files when they reach a specified size |
Log4gRollingFileAppender; Log4gRollingFileAppenderClass; void log4g_rolling_file_appender_roll_over (Log4gAppender *base
); void (*Log4gRollingFileAppenderRollOver) (Log4gAppender *base
);
This class extends Log4gFileAppenderClass to backup log files when they reach a specified size.
Rolling file appenders accept two properties:
max-backup-index
maximum-file-size
The value of max-backup-index sets the number of backup files that will be kept. For example if the value is ten, then eleven files will be kept (indexes zero through ten). The default value is one.
The log files will be rotated when the current log file reaches a size of maximum-file-size or larger. The default value is ten megabytes.
typedef struct { } Log4gRollingFileAppender;
The Log4gRollingFileAppender structure does not have any public members.
typedef struct { Log4gRollingFileAppenderRollOver roll_over; } Log4gRollingFileAppenderClass;
Log4gRollingFileAppenderRollOver |
Roll the current log file over. |
void log4g_rolling_file_appender_roll_over
(Log4gAppender *base
);
Calls the roll_over
function from the Log4gRollingFileAppender of self
.
|
A rolling file appender object. |
Since 0.1
void (*Log4gRollingFileAppenderRollOver) (Log4gAppender *base
);
Subclasses may overload this function to implement custom rollover schemes.
|
A rolling file appender object. |
Since 0.1