Packagecom.boostworthy.utils.logger
Classpublic class LogFactory
ImplementsIDisposable

The 'LogFactory' class is intended to be used as a singleton and provides a factory for creating, distributing, and managing logs throughout an application.



Public Methods
 MethodDefined by
  
LogFactory(objEnforcer:SingletonEnforcer)
Constructor.
LogFactory
  
dispose():void
Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to 'null', etc.
LogFactory
  
[static] Gets the singleton instance of the log factory.
LogFactory
  
getLevel():uint
Gets the currently set logging level.
LogFactory
  
getLog(strLogName:String):ILog
Gets the specified log.
LogFactory
  
setLevel(uLevel:uint):void
Sets the logging level to apply to all new and existing logs created by this factory.
LogFactory
Protected Methods
 MethodDefined by
  
init():void
Initializes this object.
LogFactory
Constructor detail
LogFactory()constructor
public function LogFactory(objEnforcer:SingletonEnforcer)

Constructor.

NOTE: The 'LogFactory' class is intended to be used as a singleton. Parameters

objEnforcer:SingletonEnforcer — The singleton enforcer.

See also

Method detail
dispose()method
public function dispose():void

Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to 'null', etc.

getInstance()method 
public static function getInstance():LogFactory

Gets the singleton instance of the log factory.

Returns
LogFactory — The singleton instance of the log factory.
getLevel()method 
public function getLevel():uint

Gets the currently set logging level.

Returns
uint — The currently set logging level.
getLog()method 
public function getLog(strLogName:String):ILog

Gets the specified log. If the log does not already exist, it will be created.

Parameters
strLogName:String — The name of the log to get (and create if non-existent).

Returns
ILog

See also

init()method 
protected function init():void

Initializes this object.

setLevel()method 
public function setLevel(uLevel:uint):void

Sets the logging level to apply to all new and existing logs created by this factory.

Parameters
uLevel:uint — The logging level to apply to all new and existing logs created by this factory.