org.as2lib.core.BasicClass +--org.as2lib.env.log.handler.AbstractLogHandler +--org.as2lib.env.log.handler.DebugItHandler
LogHandler
DebugItHandler
uses com.interactiveAlchemy.utils.Debug.write
of the
DebugIt Component from Robert Hoekman to log messages.
public function DebugItHandler(messageStringifier:Stringifier)
Constructs a new DebugItHandler
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 debugIt handlers and saves storage.
messageStringifier | (optional) the log message stringifier to use |
static public function getInstance(messageStringifier:Stringifier):DebugItHandler
Returns an instance of this class.
This method always returns the same instance.
The messageStringifier
argument is only recognized on first
invocation of this method.
messageStringifier | (optional) the log message stringifier to be used by the returned handler |
a debugIt handler
public function write(message:LogMessage):Void
Writes the passed-in message
using the Debug.write
method.
The string representation of the message
to log is obtained via
the convertMessage
method.
message | the message to log |