Access keys

LuminicBoxHandler

Kind of class: class
Inherits from: BasicClass
Implements:
Author: Simon Wacker, Christoph Atteneder
Classpath: org.as2lib.env.log.handler.LuminicBoxHandler
File last modified: Thursday, 23 June 2005, 12:20:22
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.

Summary

Constructor
Class methods
Instance methods
Instance methods inherited from BasicClass

Constructor

LuminicBoxHandler

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

Class methods

getInstance

static 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
Returns:
a luminic box handler

Instance methods

write

function write (
message:LogMessage) : Void
Writes directly to the LuminicBox console.

The ConsolePublisher determines how the string representation is
constructed.

Parameters:
message:
the log message to write out