Class AuditLogItemFormatter

java.lang.Object
org.jboss.as.controller.audit.AuditLogItemFormatter
Direct Known Subclasses:
JsonAuditLogItemFormatter

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

  • Constructor Details

    • AuditLogItemFormatter

      protected AuditLogItemFormatter(String name, boolean includeDate, String dateSeparator, String dateFormat)
  • Method Details

    • getName

      public String getName()
    • setIncludeDate

      public void setIncludeDate(boolean include)
      Sets whether the date should be included when logging the audit log item.
      Parameters:
      include - true to include the date
    • setDateFormat

      public void setDateFormat(String pattern)
      Sets the date format. If we should not include the date, this is ignored.
      Parameters:
      pattern - the date format to use as understood by SimpleDateFormat
    • setDateSeparator

      public void setDateSeparator(String dateSeparator)
      Sets whether the date should be included when logging the audit log item. If we should not include the date this is ignored/
      Parameters:
      include - true to include the date
    • appendDate

      protected void appendDate(StringBuilder sb, org.jboss.as.controller.audit.AuditLogItem auditLogItem)