com.ibm.websphere.logging.hpel.reader

Class HpelCBEFormatter

  1. java.lang.Object
  2. extended bycom.ibm.websphere.logging.hpel.reader.HpelFormatter
  3. extended bycom.ibm.websphere.logging.hpel.reader.HpelCBEFormatter

  1. public class HpelCBEFormatter
  2. extends HpelFormatter
A HpelFormatter subclass implementation that provides formatting of RepositoryLogRecord to a CBE format.

Field Summary

Fields inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatter
FORMAT_ADVANCED, FORMAT_BASIC, FORMAT_CBE101

Constructor Summary

Constructor and Description
HpelCBEFormatter()
Creates a HpelCBEFormatter instance

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
formatRecord(RepositoryLogRecord record,java.util.Locale locale)
Formats a RepositoryLogRecord into a localized CBE format output String.
  1. java.lang.String
getFooter()
  1. java.lang.String
getFormattedRecord(RepositoryLogRecord record,java.util.Locale locale)
Gets a String representation of a log record as a CBEEvent XML element
  1. java.lang.String[]
getHeader()
Methods inherited from class com.ibm.websphere.logging.hpel.reader.HpelFormatter
addCustomLevel, addCustomLevel, convertParameters, formatMessage, formatRecord, formatRecord, getFormatter, getHeaderProps, getLineSeparator, getLocale, getTimeZoneID, setCustomHeader, setHeaderProps, setLineSeparator, setLocale, setTimeZoneID, translateMessage
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

HpelCBEFormatter

  1. public HpelCBEFormatter()
Creates a HpelCBEFormatter instance

Method Detail

formatRecord

  1. public java.lang.String formatRecord( RepositoryLogRecord record,
  2. java.util.Locale locale)
Formats a RepositoryLogRecord into a localized CBE format output String.
Specified by:
Parameters:
record - the RepositoryLogRecord to be formatted
locale - the Locale to use for localization when formatting this record.
Returns:
the formated string output.

getFooter

  1. public java.lang.String getFooter( )
Description copied from class: HpelFormatter
Gets the formatter's footer. This method will return an empty string if the formatter does not have a footer as part of the formatter's format style.
Specified by:
Returns:
the footer as a string

getHeader

  1. public java.lang.String[] getHeader( )
Description copied from class: HpelFormatter
Gets 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:

getFormattedRecord

  1. public java.lang.String getFormattedRecord( RepositoryLogRecord record,
  2. java.util.Locale locale)
Gets 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.