Bit101Handler
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Implements: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.handler.Bit101Handler |
| File last modified: | Sunday, 10 April 2005, 10:34:10 |
Bit101Handler logs messages to the Bit-101 Debug Panel.The Debug class is needed.
Summary
Constructor
Bit101Handler
Bit101Handler instance.You can use one and the same instance for multiple loggers. So think about
using the handler returned by the static getInstance method. Using
this instance prevents the instantiation of unnecessary bit-101 handlers and
saves storage.
decorateMessage is by default true. Refer to the
Debug class for information on the default recursionDepth and
indentation.
Note that messages are only logged recursively if decorateMessage is
set to false.
by the
LogMessage.toString method or just the message returned byLogMessage.getMessagerecursively traced objects
traced objects
Class methods
getInstance
This method always returns the same instance.
Note that the arguments are only recognized on first call of this method and
are in this case used for construction of the Bit101Handler instance.
by the
LogMessage.toString method or just the message returned byLogMessage.getMessagerecursively traced objects
traced objects
Instance methods
write
Uses the org.as2lib.env.log.LogMessage.toString method to obtain the string that is
logged if decorateMessage is turned on. Otherwise the string returned
by the original message's toString method is logged if it is of type
'string', 'number', 'boolean', 'undefined' or
'null' or the original method is logged recursively if it is not of one
of the above types.