public class

XMLFormatter2

extends Formatter
java.lang.Object
   ↳ com.microstrategy.utils.log.Formatter
     ↳ com.microstrategy.utils.log.XMLFormatter2
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Format a LogRecord into a XML format with data equivalent to that generated by MSTRLog

Summary

Fields
protected static final String lineSeparator
Public Constructors
XMLFormatter2()
Public Methods
String format(LogRecord record)
Format the given message to XML.
Protected Methods
void addLogInfo(LogRecord record, StringBuffer sb)
String getStackTrace(Throwable ex)
Duplicated from Formatter, so we can use this class in 75x.
[Expand]
Inherited Methods
From class com.microstrategy.utils.log.Formatter
From class java.lang.Object

Fields

protected static final String lineSeparator

Public Constructors

public XMLFormatter2 ()

Public Methods

public String format (LogRecord record)

Format the given message to XML.

Parameters
record the log record to be formatted.
Returns
  • a formatted log record

Protected Methods

protected void addLogInfo (LogRecord record, StringBuffer sb)

protected String getStackTrace (Throwable ex)

Duplicated from Formatter, so we can use this class in 75x.