LogHandler
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.
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.
maximalInspectionDepth | (optional) the maximal depth of object inspection |
static public function getInstance(maximalInspectionDepth:Number):LuminicBoxHandlerReturns 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.
maximalInspectionDepth | (optional) the maximal depth of object inspection |
a luminic box handler
public function write(message:LogMessage):VoidWrites directly to the LuminicBox console.
The ConsolePublisher determines how the string representation is
constructed.
message | the log message to write out |