Access keys

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 class
from Sascha Balkau to log messages.

Summary

Constructor
Class methods
Instance methods
Instance methods inherited from BasicClass

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 LogMessage.toString or only the original message returned by
LogMessage.getMessage for logging
recursiveTracing:
(optional) determines whether messages shall be traced
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 LogMessage.toString or only the original message returned by
LogMessage.getMessage for logging
recursiveTracing:
(optional) determines whether messages shall be traced
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