Package org.wildfly.security.audit
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
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for size rotating file audit endpoints. -
Field Summary
Fields inherited from class org.wildfly.security.audit.FileAuditEndpoint
clock -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Obtain a newSizeRotatingFileAuditEndpoint.Buildercapable of building aSizeRotatingFileAuditEndpoint.protected voidprotected voidMethods inherited from class org.wildfly.security.audit.FileAuditEndpoint
accept, closeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.common.function.ExceptionBiConsumer
andThen, compose
-
Method Details
-
write
- Throws:
IOException
-
preWrite
-
builder
Obtain a newSizeRotatingFileAuditEndpoint.Buildercapable of building aSizeRotatingFileAuditEndpoint.- Returns:
- a new
SizeRotatingFileAuditEndpoint.Buildercapable of building aSizeRotatingFileAuditEndpoint.
-