Class SizeRotatingFileAuditEndpoint

java.lang.Object
org.wildfly.security.audit.FileAuditEndpoint
org.wildfly.security.audit.SizeRotatingFileAuditEndpoint
All Implemented Interfaces:
Closeable, AutoCloseable, org.wildfly.common.function.ExceptionBiConsumer<EventPriority,String,IOException>, AuditEndpoint

public class SizeRotatingFileAuditEndpoint extends FileAuditEndpoint
An audit endpoint which rotates the log when log file size reach given value.

Moves old log records into files tagged by index - the older has the higher index. When index reach maxBackupIndex, the oldest log file is removed, so there are at most maxBackupIndex + 1 log files.

Based on PeriodicSizeRotatingFileHandler.

Author:
Jan Kalina, James R. Perkins, Yeray Borges