com. kelvinluck. util. LogWrapper

Class to wrap the LuminicBox.Log logging system from http://www.luminicbox.com/blog/?page=post&id=2

I started out developing using Colin Moock’s org.moock.logger.Logger logging class then discovered this cooler one.  I thought that rather than changing all my calls to the logger class I could just wrap the LumicBox class in this class of my own.

The class implements the Singleton pattern and provides access to the methods of LuminicBox.Log that I have needed...

Version

0.1.0

Author

Kelvin Luck kel.nosp@m.vin@kelvinl.nosp@m.uck.com (but it just wraps the LuminicBox code which I didn’t write)

Summary
Class to wrap the LuminicBox.Log logging system from http://www.luminicbox.com/blog/?page=post&id=2
Call this function if you want logged output to be displayed in the seperate “console” swf.
Call this function if you want logged output to be displayed in the trace window of the Flash IDE.
Returns a reference to the Single LogWrapper instance.
Returns a reference to the LuminicBox.Log.Logger instance that is being wrapped.

Functions

Logger

Private constructoruse <Logger.getInstance> to get a Logger instance

addConsolePublisher

public function addConsolePublisher()

Call this function if you want logged output to be displayed in the seperate “console” swf.

addTracePublisher

public function addTracePublisher()

Call this function if you want logged output to be displayed in the trace window of the Flash IDE.

getInstance

public static function getInstance():LogWrapper

Returns a reference to the Single LogWrapper instance.

Returns

LogWrapperThe LogWrapper instance

getLog

public static function getLog():Logger

Returns a reference to the LuminicBox.Log.Logger instance that is being wrapped.

Returns

LoggerA reference to the LuminicBox.Log.Logger instance that is being wrapped
public function addConsolePublisher()
Call this function if you want logged output to be displayed in the seperate “console” swf.
public function addTracePublisher()
Call this function if you want logged output to be displayed in the trace window of the Flash IDE.
public static function getInstance():LogWrapper
Returns a reference to the Single LogWrapper instance.
public static function getLog():Logger
Returns a reference to the LuminicBox.Log.Logger instance that is being wrapped.