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 String
name
-
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 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
-
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:
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)
-
-