AlconHandler
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Implements: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.env.log.handler.AlconHandler |
| File last modified: | Sunday, 10 July 2005, 17:12:14 |
AlconHandler uses the net.hiddenresource.util.Debug classfrom Sascha Balkau to log messages.
Summary
Constructor
Class methods
Constructor
AlconHandler
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.
Parameters:
decorateMethod :
(optional) determines whether to use the string returned
by
by
LogMessage.toString or only the original message returned byLogMessage.getMessage for loggingrecursiveTracing:
(optional) determines whether messages shall be traced
recursively or not
recursively or not
Class methods
getInstance
static 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.
Parameters:
decorateMethod :
(optional) determines whether to use the string returned
by
by
LogMessage.toString or only the original message returned byLogMessage.getMessage for loggingrecursiveTracing:
(optional) determines whether messages shall be traced
recursively or not
recursively or not
Returns:
a alcon handler
Instance methods
write
function write (
message:LogMessage) : Void
Uses the
AlconHandler class to log the message.Parameters:
message:
the message to log
Specified by: