Class org.as2lib.env.log.handler.LuminicBoxHandler

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

Implemented Interfaces

LogHandler

Description

LuminicBoxHandler is a wrapper of the ConsolePublisher class from the LuminicBox Logging API. It can be used to write log messages to the LuminicBox console.

Method Index

new LuminicBoxHandler()

getInstance(), write()

Inherited from BasicClass

toString()

Constructor Detail

LuminicBoxHandler

public function LuminicBoxHandler(maximalInspectionDepth:Number)

Constructs a new LuminicBoxHandler 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 luminic box handlers and saves storage.

Parameters

maximalInspectionDepth(optional) the maximal depth of object inspection

Method Detail

getInstance

static public function getInstance(maximalInspectionDepth:Number):LuminicBoxHandler

Returns an instance of this class.

This method always returns the same instance.

The maximalInspectionDepth is only recognized when this method is invoked the first time.

Parameters

maximalInspectionDepth(optional) the maximal depth of object inspection

Return

a luminic box handler

write

public function write(message:LogMessage):Void

Writes directly to the LuminicBox console.

The ConsolePublisher determines how the string representation is constructed.

Parameters

messagethe log message to write out

Specified By

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