com.sap.tc.logging

Class XMLFormatter

java.lang.Object
  extended by com.sap.tc.logging.Formatter
      extended by com.sap.tc.logging.XMLFormatter

public class XMLFormatter
extends Formatter

Formats log records as XML elements.


Field Summary
 
Fields inherited from class com.sap.tc.logging.Formatter
EOL
 
Constructor Summary
XMLFormatter()
           
 
Method Summary
protected  StringBuffer escape(String s, StringBuffer buf)
           
 String format(LogRecord rec)
          Formats a log record which is then ready to be written to a log.
 String getFooter(Log log)
          Returns the footer for a set of formatted records.
 String getHeader(Log log)
          Returns the header for a set of formatted records.
 
Methods inherited from class com.sap.tc.logging.Formatter
equals, getFormatterName, getFormatterType, getMessageAccessor, getMessageBuilder, isCompleteMessage, isCompleteMessage, isParsable, isStartMessage, isStartMsg, parseMsg, parseMsg, parseMsg, setFormatterName, setMessageAccessor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormatter

public XMLFormatter()
Method Detail

format

public String format(LogRecord rec)
Description copied from class: Formatter
Formats a log record which is then ready to be written to a log.

Specified by:
format in class Formatter
Parameters:
rec - Log record to be formatted
Returns:
Formatted log record

getHeader

public String getHeader(Log log)
Description copied from class: Formatter
Returns the header for a set of formatted records.

Overrides:
getHeader in class Formatter
Parameters:
log - Target log.
Returns:
Header

getFooter

public String getFooter(Log log)
Description copied from class: Formatter
Returns the footer for a set of formatted records.

Overrides:
getFooter in class Formatter
Parameters:
log - Target log
Returns:
Footer

escape

protected StringBuffer escape(String s,
                              StringBuffer buf)
Access Rights

This class can be accessed from:


SC DC
[sap.com] FRAMEWORK [sap.com] tc/ddic/ddicruntime
[sap.com] ENGINEAPI [sap.com] tc/logging
[sap.com] ENGFACADE [sap.com] tc/bl/logging/api
[sap.com] CORE-TOOLS [sap.com] com.sap.engine.client.lib
[sap.com] BRMS-FACADE [sap.com] tc/brms/facade


Copyright 2010 SAP AG Complete Copyright Notice