org.as2lib.core.BasicClass +--org.as2lib.env.log.handler.AlconHandler
LogHandler
AlconHandler
uses the net.hiddenresource.util.Debug
class
from Sascha Balkau to log messages.
public function AlconHandler(decorateMethod:Boolean, recursiveTracing:Boolean)
Constructs a new AlconHandler
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 alcon handlers and saves storage.
decorateMethod
is by default true
and recursiveTracing
false
.
Note that recursiveTracing
is turned off when decorateMethod
is turned on.
decorateMethod | (optional) determines whether to use the string returned
by LogMessage.toString or only the original message returned by
LogMessage.getMessage for logging
|
recursiveTracing | (optional) determines whether messages shall be traced recursively or not |
static public function getInstance(decorateMethod:Boolean, recursiveTracing:Boolean):AlconHandler
Returns an instance of this class.
This method always returns the same instance.
Note that the two arguments decorateMethod
and recursiveTracing
are only recognized on first call of this method.
decorateMethod | (optional) determines whether to use the string returned
by LogMessage.toString or only the original message returned by
LogMessage.getMessage for logging
|
recursiveTracing | (optional) determines whether messages shall be traced recursively or not |
a alcon handler
public function write(message:LogMessage):Void
Uses the AlconHandler
class to log the message
.
message | the message to log |