Class HpelCBEFormatter

java.lang.Object
com.ibm.websphere.logging.hpel.reader.HpelFormatter
com.ibm.websphere.logging.hpel.reader.HpelCBEFormatter

public class HpelCBEFormatter extends HpelFormatter
A HpelFormatter subclass implementation that provides formatting of RepositoryLogRecord to a CBE format.
  • Constructor Details

    • HpelCBEFormatter

      public HpelCBEFormatter()
      Creates a HpelCBEFormatter instance
  • Method Details

    • formatRecord

      public String formatRecord(RepositoryLogRecord record, Locale locale)
      Formats a RepositoryLogRecord into a localized CBE format output String.
      Specified by:
      formatRecord in class HpelFormatter
      Parameters:
      record - the RepositoryLogRecord to be formatted
      locale - the Locale to use for localization when formatting this record.
      Returns:
      the formated string output.
    • getFooter

      public 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:
      getFooter in class HpelFormatter
      Returns:
      the footer as a string
    • getHeader

      public 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:
      getHeader in class HpelFormatter
    • getFormattedRecord

      public String getFormattedRecord(RepositoryLogRecord record, 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.