Class HpelBasicFormatter
java.lang.Object
com.ibm.websphere.logging.hpel.reader.HpelFormatter
com.ibm.websphere.logging.hpel.reader.HpelPlainFormatter
com.ibm.websphere.logging.hpel.reader.HpelBasicFormatter
A HpelPlainFormatter subclass implementation that provides formatting of RepositoryLogRecord to a format
referred to as "Basic".
-
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 into a localized basic format output String.Footers do not exist for the Basic format, so return empty string.void
setLineSeparator
(String lineSeparator) Methods inherited from class com.ibm.websphere.logging.hpel.reader.HpelPlainFormatter
getHeader
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, setStartDatetime, setTimeZoneID, translateMessage
-
Constructor Details
-
HpelBasicFormatter
public HpelBasicFormatter()
-
-
Method Details
-
formatRecord
Formats a RepositoryLogRecord into a localized basic format output String.- Specified by:
formatRecord
in classHpelFormatter
- Parameters:
record
- the RepositoryLogRecord to be formattedlocale
- the Locale to use for localization when formatting this record.- Returns:
- the formated string output.
-
setLineSeparator
- Overrides:
setLineSeparator
in classHpelFormatter
-