public class HpelCBEFormatter extends HpelFormatter
FORMAT_ADVANCED, FORMAT_BASIC, FORMAT_CBE101, FORMAT_JSON
Constructor and Description |
---|
HpelCBEFormatter()
Creates a HpelCBEFormatter instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatRecord(RepositoryLogRecord record,
java.util.Locale locale)
Formats a RepositoryLogRecord into a localized CBE format output String.
|
java.lang.String |
getFooter()
Gets the formatter's footer.
|
java.lang.String |
getFormattedRecord(RepositoryLogRecord record,
java.util.Locale locale)
Gets a String representation of a log record as a CBEEvent XML element
|
java.lang.String[] |
getHeader()
Gets the formatter's header.
|
addCustomLevel, addCustomLevel, convertParameters, formatMessage, formatRecord, formatRecord, getFormatter, getHeaderProps, getLineSeparator, getLocale, getTimeZoneID, setCustomHeader, setHeaderProps, setLineSeparator, setLocale, setStartDatetime, setTimeZoneID, translateMessage
public java.lang.String formatRecord(RepositoryLogRecord record, java.util.Locale locale)
formatRecord
in class HpelFormatter
record
- the RepositoryLogRecord to be formattedlocale
- the Locale to use for localization when formatting this record.public java.lang.String getFooter()
HpelFormatter
getFooter
in class HpelFormatter
public java.lang.String[] getHeader()
HpelFormatter
getHeader
in class HpelFormatter
public java.lang.String getFormattedRecord(RepositoryLogRecord record, java.util.Locale locale)
record
- of the event.locale
- the locale to use when printing the output.