Package org.jboss.as.controller.audit
Class SizeRotatingFileAuditLogHandler
- java.lang.Object
-
- org.jboss.as.controller.audit.AbstractFileAuditLogHandler
-
- org.jboss.as.controller.audit.SizeRotatingFileAuditLogHandler
-
public class SizeRotatingFileAuditLogHandler extends AbstractFileAuditLogHandler
All methods on this class should be called withManagedAuditLoggerImpl's lock taken.- Author:
- Ivo Studensky
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringname-
Fields inherited from class org.jboss.as.controller.audit.AbstractFileAuditLogHandler
LINE_TERMINATOR
-
-
Constructor Summary
Constructors Constructor Description SizeRotatingFileAuditLogHandler(String name, String formatterName, int maxFailureCount, PathManagerService pathManager, String path, String relativeTo, long rotateSize, int maxBackupIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitializeAtStartup(File file)protected voidrotateLogFile(File file)voidsetFormatterName(String formatterName)voidsetMaxFailureCount(int count)-
Methods inherited from class org.jboss.as.controller.audit.AbstractFileAuditLogHandler
copyFile, createNewFile, rename
-
-
-
-
Field Detail
-
name
protected final String name
-
-
Constructor Detail
-
SizeRotatingFileAuditLogHandler
public SizeRotatingFileAuditLogHandler(String name, String formatterName, int maxFailureCount, PathManagerService pathManager, String path, String relativeTo, long rotateSize, int maxBackupIndex)
-
-
Method Detail
-
initializeAtStartup
protected void initializeAtStartup(File file)
- Specified by:
initializeAtStartupin classAbstractFileAuditLogHandler
-
rotateLogFile
protected void rotateLogFile(File file)
- Specified by:
rotateLogFilein classAbstractFileAuditLogHandler
-
setMaxFailureCount
public void setMaxFailureCount(int count)
-
setFormatterName
public void setFormatterName(String formatterName)
-
-