com.sap.tc.logging.perf
Class PerfFormatter

java.lang.Object
  |
  +--com.sap.tc.logging.Formatter
        |
        +--com.sap.tc.logging.ListFormatter
              |
              +--com.sap.tc.logging.perf.PerfFormatter

public class PerfFormatter
extends ListFormatter


Fields inherited from class com.sap.tc.logging.ListFormatter
F_NAME_APPLICATION, F_NAME_DATE_TIME, F_NAME_DSR_COMPONENT, F_NAME_DSR_TRANSACTION, F_NAME_DSR_USER, F_NAME_LOCATION, F_NAME_MSG_CLEAR, F_NAME_SESSION, F_NAME_SEVERITY, F_NAME_SOURCE, F_NAME_THREAD_NAME, F_NAME_TRANSACTION, F_NAME_USER
 
Constructor Summary
PerfFormatter()
           
 
Method Summary
 LogRecord parseMsg(byte[] msgChunk)
           
 LogRecord parseMsg(java.lang.String completeMsgData)
          Parse message formatted by ListFormatter, current version 1.5.
 java.lang.String toString()
           
 
Methods inherited from class com.sap.tc.logging.ListFormatter
compareField, format, getFields, isCompleteMessage, isCompleteMessage, isParsable, isStartMessage, isStartMsg
 
Methods inherited from class com.sap.tc.logging.Formatter
equals, getFooter, getFormatterName, getFormatterType, getHeader, setFormatterName
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerfFormatter

public PerfFormatter()
Method Detail

parseMsg

public LogRecord parseMsg(byte[] msgChunk)
                   throws java.text.ParseException
Overrides:
parseMsg in class ListFormatter

parseMsg

public LogRecord parseMsg(java.lang.String completeMsgData)
                   throws java.text.ParseException
Description copied from class: ListFormatter
Parse message formatted by ListFormatter, current version 1.5. Also backward compatible with ListFormatter version 1.3 & 1.4
Also work with version 1.2, but may fail for message that spans multiple lines
Can handle string with ending EOL or without ending EOL.
Overrides:
parseMsg in class ListFormatter
Following copied from class: com.sap.tc.logging.Formatter
Parameters:
A - complete message body and its admin data that can span across multiple lines
Returns:
The complete message with its admin data has been broken down and packed in LogRecord. Return Null if formatter does not support parsing.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object