Class Overview
This formatter logs messages that are compatible with the Web Mimic transcript
log specification. The Web Mimic transcript can be seen as a "recording" of
client interactions with the IServer. These recordings can be played back
against the Java XML API to simulate a multiuser session.
The implementation of this formatter makes the following assumptions:
-- This class only needs to support the Java XML API
-- There are no in/out parameters in any method signature.
-- Any output parameters in a given method signature occur after the last input parameter
-- Any given output parameter is of a class whose toString method returns a useful
representation of the object (ex: IntWrapper and StringWrapper)
-- Primitives are passed to logging methods as Strings
-- A logged classname has has its fully qualified path prepended to it
-- Every interface we're interested in is implemented by only one class.
-- The thread calling format() is the one that logged the message.
-- A LoggerHelper.ENTER record includes any output parameters in its parameter array
-- If methods are added to the Java XML API, this class will be updated.
Summary
Public Methods |
String
|
format(LogRecord record)
Formats a relevant message for a Java XML API interface method (ENTRY,
RETURN, PROPERTY or EXCEPTION) according to the Web Mimic transcript spec
and returns the formatted string.
|
[Expand]
Inherited Methods |
From class
com.microstrategy.utils.log.Formatter
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
WebMimicLogFormatter
()
Public Methods
public
String
format
(LogRecord record)
Formats a relevant message for a Java XML API interface method (ENTRY,
RETURN, PROPERTY or EXCEPTION) according to the Web Mimic transcript spec
and returns the formatted string. Note that for PROPERTY messages we
will call this method recursively twice to create ENTRY and RETURN
strings, and then concatenate the results.
Parameters
record |
the LogRecord for the trace message to be formatted. |
Returns
- the log record, formatted according to the Web Mimic spec.