Class HpelCBEFormatter
java.lang.Object
com.ibm.websphere.logging.hpel.reader.HpelFormatter
com.ibm.websphere.logging.hpel.reader.HpelCBEFormatter
A HpelFormatter subclass implementation that provides formatting of RepositoryLogRecord to a CBE format.
- 
Field SummaryFields inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatterFORMAT_ADVANCED, FORMAT_BASIC, FORMAT_CBE101, FORMAT_JSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionformatRecord(RepositoryLogRecord record, Locale locale) Formats a RepositoryLogRecord into a localized CBE format output String.Gets the formatter's footer.getFormattedRecord(RepositoryLogRecord record, Locale locale) Gets a String representation of a log record as a CBEEvent XML elementString[]Gets the formatter's header.Methods inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatteraddCustomLevel, addCustomLevel, convertParameters, formatMessage, formatRecord, formatRecord, getFormatter, getHeaderProps, getLineSeparator, getLocale, getTimeZoneID, setCustomHeader, setDateFormat, setHeaderProps, setLineSeparator, setStartDatetime, setTimeZoneID, translateMessage
- 
Constructor Details- 
HpelCBEFormatterpublic HpelCBEFormatter()Creates a HpelCBEFormatter instance
 
- 
- 
Method Details- 
formatRecordFormats a RepositoryLogRecord into a localized CBE format output String.- Specified by:
- formatRecordin class- HpelFormatter
- Parameters:
- record- the RepositoryLogRecord to be formatted
- locale- the Locale to use for localization when formatting this record.
- Returns:
- the formated string output.
 
- 
getHeaderDescription copied from class:HpelFormatterGets the formatter's header. This method will return an empty array if the formatter does not have a header as part of the formatter's format style return the header as an array of strings- Specified by:
- getHeaderin class- HpelFormatter
 
- 
getFormattedRecordGets a String representation of a log record as a CBEEvent XML element- Parameters:
- record- of the event.
- locale- the locale to use when printing the output.
- Returns:
- String representation of the record in CBE format.
 
 
-