Package org.jboss.as.controller.audit
Class AuditLogItemFormatter
java.lang.Object
org.jboss.as.controller.audit.AuditLogItemFormatter
- Direct Known Subclasses:
JsonAuditLogItemFormatter
All methods on this class should be called with
ManagedAuditLoggerImpl's lock taken.- Author:
- Kabir Khan
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAuditLogItemFormatter(String name, boolean includeDate, String dateSeparator, String dateFormat) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendDate(StringBuilder sb, org.jboss.as.controller.audit.AuditLogItem auditLogItem) getName()voidsetDateFormat(String pattern) Sets the date format.voidsetDateSeparator(String dateSeparator) Sets whether the date should be included when logging the audit log item.voidsetIncludeDate(boolean include) Sets whether the date should be included when logging the audit log item.
-
Field Details
-
TYPE_JMX
- See Also:
-
TYPE_CORE
- See Also:
-
name
-
-
Constructor Details
-
AuditLogItemFormatter
-
-
Method Details
-
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
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
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)
-