Class org.as2lib.env.log.handler.AlconHandler

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.handler.AlconHandler

Implemented Interfaces

LogHandler

Description

AlconHandler uses the net.hiddenresource.util.Debug class from Sascha Balkau to log messages.

Method Index

new AlconHandler()

getInstance(), write()

Inherited from BasicClass

toString()

Constructor Detail

AlconHandler

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.

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

Method Detail

getInstance

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.

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

Return

a alcon handler

write

public function write(message:LogMessage):Void

Uses the AlconHandler class to log the message.

Parameters

messagethe message to log

Specified By

write() in org.as2lib.env.log.LogHandler