Class AbstractFileAuditLogHandler

java.lang.Object
org.jboss.as.controller.audit.AbstractFileAuditLogHandler
Direct Known Subclasses:
FileAuditLogHandler, PeriodicRotatingFileAuditLogHandler, SizeRotatingFileAuditLogHandler

public abstract class AbstractFileAuditLogHandler extends Object
All methods on this class should be called with ManagedAuditLoggerImpl's lock taken.
Author:
Kabir Khan, Ivo Studensky
  • Field Details

    • LINE_TERMINATOR

      protected static final byte[] LINE_TERMINATOR
    • name

      protected final String name
  • Constructor Details

  • Method Details

    • initializeAtStartup

      protected abstract void initializeAtStartup(File file)
    • rotateLogFile

      protected abstract void rotateLogFile(File file)
    • copyFile

      protected void copyFile(File file, File backup) throws IOException
      Throws:
      IOException
    • rename

      protected void rename(File file, File to) throws IOException
      Throws:
      IOException
    • createNewFile

      protected void createNewFile(File file)
      This creates a new audit log file with default permissions.
      Parameters:
      file - File to create
    • setMaxFailureCount

      public void setMaxFailureCount(int count)
    • setFormatterName

      public void setFormatterName(String formatterName)