Class HpelAdvancedFormatter
- java.lang.Object
-
- com.ibm.websphere.logging.hpel.reader.HpelFormatter
-
- com.ibm.websphere.logging.hpel.reader.HpelPlainFormatter
-
- com.ibm.websphere.logging.hpel.reader.HpelAdvancedFormatter
-
public class HpelAdvancedFormatter extends HpelPlainFormatter
A HpelPlainFormatter subclass implementation that provides formatting of RepositoryLogRecord to a format referred to as "Advanced".
-
-
Field Summary
-
Fields inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatter
FORMAT_ADVANCED, FORMAT_BASIC, FORMAT_CBE101, FORMAT_JSON
-
-
Constructor Summary
Constructors Constructor Description HpelAdvancedFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatRecord(RepositoryLogRecord record, java.util.Locale locale)
Formats a RepositoryLogRecord into a localized advanced format output String.java.lang.String
getFooter()
Footers do not exist for the Advanced format, so return empty string.void
setLineSeparator(java.lang.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
-
-
-
-
Method Detail
-
formatRecord
public java.lang.String formatRecord(RepositoryLogRecord record, java.util.Locale locale)
Formats a RepositoryLogRecord into a localized advanced 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.
-
getFooter
public java.lang.String getFooter()
Footers do not exist for the Advanced format, so return empty string.- Specified by:
getFooter
in classHpelFormatter
- Returns:
- the footer as a string
-
setLineSeparator
public void setLineSeparator(java.lang.String lineSeparator)
- Overrides:
setLineSeparator
in classHpelFormatter
-
-