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 Summary
Fields inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatter
FORMAT_ADVANCED, FORMAT_BASIC, FORMAT_CBE101, FORMAT_JSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatRecord
(RepositoryLogRecord record, Locale locale) Formats a RepositoryLogRecord using the locale specified.Gets the formatter's footer.String[]
Gets the file header information.void
setStartDatetime
(long datetime) Methods inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatter
addCustomLevel, addCustomLevel, convertParameters, formatMessage, formatRecord, formatRecord, getFormatter, getHeaderProps, getLineSeparator, getLocale, getTimeZoneID, setCustomHeader, setDateFormat, setHeaderProps, setLineSeparator, setTimeZoneID, translateMessage
-
Constructor Details
-
HpelJsonFormatter
public HpelJsonFormatter()
-
-
Method Details
-
formatRecord
Description copied from class:HpelFormatter
Formats a RepositoryLogRecord using the locale specified.- Specified by:
formatRecord
in classHpelFormatter
- Parameters:
record
- the RepositoryLogRecord to be formattedlocale
- the locale to use when formatting this record.- Returns:
- the formatted RepositoryLogRecord as string output.
-
getHeader
Description copied from class:HpelPlainFormatter
Gets the file header information. Implementations of the HpelPlainFormatter class will have a non-XML-based header.- Overrides:
getHeader
in classHpelPlainFormatter
- Returns:
- the formatter's header as a String
-
setStartDatetime
public void setStartDatetime(long datetime) - Overrides:
setStartDatetime
in classHpelFormatter
-