public abstract class AuditLogItemFormatter extends Object
ManagedAuditLoggerImpl
's lock taken.Modifier and Type | Field and Description |
---|---|
protected String |
name |
static String |
TYPE_CORE |
static String |
TYPE_JMX |
Modifier | Constructor and Description |
---|---|
protected |
AuditLogItemFormatter(String name,
boolean includeDate,
String dateSeparator,
String dateFormat) |
Modifier and Type | Method and 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.
|
public static final String TYPE_JMX
public static final String TYPE_CORE
protected final String name
public String getName()
public void setIncludeDate(boolean include)
include
- true to include the date
public void setDateFormat(String pattern)
pattern
- the date format to use as understood by SimpleDateFormat
public void setDateSeparator(String dateSeparator)
include
- true to include the date
protected void appendDate(StringBuilder sb, org.jboss.as.controller.audit.AuditLogItem auditLogItem)
Copyright © 2023 JBoss by Red Hat. All rights reserved.