Class HpelJsonFormatter
java.lang.Object
com.ibm.websphere.logging.hpel.reader.HpelFormatter
com.ibm.websphere.logging.hpel.reader.HpelPlainFormatter
com.ibm.websphere.logging.hpel.reader.HpelJsonFormatter
- 
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 using the locale specified.Gets the formatter's footer.String[]Gets the file header information.voidsetStartDatetime(long datetime) 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, setTimeZoneID, translateMessage
- 
Constructor Details- 
HpelJsonFormatterpublic HpelJsonFormatter()
 
- 
- 
Method Details- 
formatRecordDescription copied from class:HpelFormatterFormats a RepositoryLogRecord using the locale specified.- Specified by:
- formatRecordin class- HpelFormatter
- Parameters:
- record- the RepositoryLogRecord to be formatted
- locale- the locale to use when formatting this record.
- Returns:
- the formatted RepositoryLogRecord as string output.
 
- 
getHeaderDescription copied from class:HpelPlainFormatterGets the file header information. Implementations of the HpelPlainFormatter class will have a non-XML-based header.- Overrides:
- getHeaderin class- HpelPlainFormatter
- Returns:
- the formatter's header as a String
 
- 
setStartDatetimepublic void setStartDatetime(long datetime) - Overrides:
- setStartDatetimein class- HpelFormatter
 
 
-