Package org.jboss.as.controller.audit
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 withManagedAuditLoggerImpl
's lock taken.- Author:
- Kabir Khan
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuditLogItemFormatter(String name, boolean includeDate, String dateSeparator, String dateFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendDate(StringBuilder sb, org.jboss.as.controller.audit.AuditLogItem auditLogItem)
String
getName()
void
setDateFormat(String pattern)
Sets the date format.void
setDateSeparator(String dateSeparator)
Sets whether the date should be included when logging the audit log item.void
setIncludeDate(boolean include)
Sets whether the date should be included when logging the audit log item.
-
-
-
Field Detail
-
TYPE_JMX
public static final String TYPE_JMX
- See Also:
- Constant Field Values
-
TYPE_CORE
public static final String TYPE_CORE
- See Also:
- Constant Field Values
-
name
protected final String name
-
-
Method Detail
-
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 bySimpleDateFormat
-
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)
-
-