Package com.microstrategy.utils.log
Class XMLDebugFormatter
- java.lang.Object
-
- com.microstrategy.utils.log.Formatter
-
- com.microstrategy.utils.log.XMLFormatter2
-
- com.microstrategy.utils.log.XMLFormatter
-
- com.microstrategy.utils.log.XMLDebugFormatter
-
- All Implemented Interfaces:
Configurable
public class XMLDebugFormatter extends XMLFormatter implements Configurable
- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
-
Fields inherited from class com.microstrategy.utils.log.XMLFormatter2
lineSeparator
-
-
Constructor Summary
Constructors Constructor Description XMLDebugFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildAllInfo(XMLBuilder xml, LogRecord record)
protected void
buildAllInfo(XMLBuilder xml, LogRecord record, int count)
protected void
buildExit(XMLBuilder xml, LogRecord exit)
void
configure(java.lang.String prefix)
Requests the configurable object to configure itself.java.lang.String
format(java.util.List logRecords)
boolean
isTracing()
void
setTracing(boolean tracingOn)
-
Methods inherited from class com.microstrategy.utils.log.XMLFormatter2
addLogInfo, format, getStackTrace
-
Methods inherited from class com.microstrategy.utils.log.Formatter
formatMessage, getExceptionMessage, getHead, getTail
-
-
-
-
Method Detail
-
configure
public void configure(java.lang.String prefix)
Description copied from interface:Configurable
Requests the configurable object to configure itself. The "partial properties key" is a parameter of this method. It allows different pluggable logger components to configure themselves without knowing their parent. For example let's assume we have in the logger.properties file a handler named "fileH". Then for the handler itself the prefix will be the "fileH". For the formatter of this handler the prefix will be "fileH.formatter". For the filter of this handler the prefix will be "fileH.filter". And so on. Here is the simplified handler creation workflow:- A handler is created based on the corresponding class property ("fileH.class" in our example).
- The handler's configure method is called with it's name as a prefix ("fileH" in our example).
- Inside this method the handler reads it's configuration properties and configures itself. Among other things it creates child components. For example it will read the "fileH.filter" property, which defines the filter class name and will create corresponding object.
- For each child component the handler will call it's configure method passing proper prefix. For example for the filter the prefix will be "fileH.filter".
- Specified by:
configure
in interfaceConfigurable
- Parameters:
prefix
- String The partial properties key.
-
setTracing
public void setTracing(boolean tracingOn)
-
isTracing
public boolean isTracing()
-
format
public java.lang.String format(java.util.List logRecords)
-
buildAllInfo
protected void buildAllInfo(XMLBuilder xml, LogRecord record)
-
buildAllInfo
protected void buildAllInfo(XMLBuilder xml, LogRecord record, int count)
- Since:
- MicroStrategy Web 9.0.0
-
buildExit
protected void buildExit(XMLBuilder xml, LogRecord exit)
-
-