Package com.microstrategy.utils.log
Class XMLFormatter2
- java.lang.Object
-
- com.microstrategy.utils.log.Formatter
-
- com.microstrategy.utils.log.XMLFormatter2
-
- Direct Known Subclasses:
XMLFormatter,XMLTracingFormatter
public class XMLFormatter2 extends Formatter
Format a LogRecord into a XML format with data equivalent to that generated by MSTRLog- Since:
- MicroStrategy Web 8.0.1
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringlineSeparator
-
Constructor Summary
Constructors Constructor Description XMLFormatter2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLogInfo(LogRecord record, java.lang.StringBuffer sb)java.lang.Stringformat(LogRecord record)Format the given message to XML.protected java.lang.StringgetStackTrace(java.lang.Throwable ex)Duplicated from Formatter, so we can use this class in 75x.-
Methods inherited from class com.microstrategy.utils.log.Formatter
formatMessage, getExceptionMessage, getHead, getTail
-
-
-
-
Method Detail
-
addLogInfo
protected void addLogInfo(LogRecord record, java.lang.StringBuffer sb)
-
format
public java.lang.String format(LogRecord record)
Format the given message to XML.
-
getStackTrace
protected java.lang.String getStackTrace(java.lang.Throwable ex)
Duplicated from Formatter, so we can use this class in 75x.- Overrides:
getStackTracein classFormatter
-
-