Class XMLFormatter3

  • Direct Known Subclasses:
    XMLTracingFormatter2

    public class XMLFormatter3
    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.String lineSeparator  
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLFormatter3()  
    • Field Detail

      • lineSeparator

        protected static final java.lang.String lineSeparator
    • Constructor Detail

      • XMLFormatter3

        public XMLFormatter3()
    • 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.
        Specified by:
        format in class Formatter
        Parameters:
        record - the log record to be formatted.
        Returns:
        a formatted log record
      • getStackTrace

        protected java.lang.String getStackTrace​(java.lang.Throwable ex)
        Duplicated from Formatter, so we can use this class in 75x.
        Overrides:
        getStackTrace in class Formatter