Package | com.boostworthy.utils.logger |
Class | public class LogFactory |
Implements | IDisposable |
Method | Defined 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 | ||
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 |
Method | Defined by | ||
---|---|---|---|
init():void
Initializes this object.
| LogFactory |
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
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.
ReturnsLogFactory —
The singleton instance of the log factory.
|
getLevel | () | method |
public function getLevel():uint
Gets the currently set logging level.
Returnsuint — 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.
ParametersstrLogName:String — The name of the log to get (and create if non-existent).
|
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.
ParametersuLevel:uint — The logging level to apply to all new and existing logs created by this factory.
|