Package org.jboss.as.controller.audit
Class FileAuditLogHandler
- java.lang.Object
-
- org.jboss.as.controller.audit.AbstractFileAuditLogHandler
-
- org.jboss.as.controller.audit.FileAuditLogHandler
-
public class FileAuditLogHandler extends AbstractFileAuditLogHandler
All methods on this class should be called withManagedAuditLoggerImpl's lock taken.- Author:
- Kabir Khan, 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 FileAuditLogHandler(String name, String formatterName, int maxFailureCount, PathManagerService pathManager, String path, String relativeTo, boolean rotateAtStartup)
-
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
-
FileAuditLogHandler
public FileAuditLogHandler(String name, String formatterName, int maxFailureCount, PathManagerService pathManager, String path, String relativeTo, boolean rotateAtStartup)
-
-
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)
-
-