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 String
name
-
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 void
initializeAtStartup(File file)
protected void
rotateLogFile(File file)
void
setFormatterName(String formatterName)
void
setMaxFailureCount(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:
initializeAtStartup
in classAbstractFileAuditLogHandler
-
rotateLogFile
protected void rotateLogFile(File file)
- Specified by:
rotateLogFile
in classAbstractFileAuditLogHandler
-
setMaxFailureCount
public void setMaxFailureCount(int count)
-
setFormatterName
public void setFormatterName(String formatterName)
-
-