Packagecom.boostworthy.utils.logger
Classpublic class Log
ImplementsILog

The 'Log' class logs vaarious meesages for output of a specific log level.

See also

com.boostworthy.utils.logger.ILog
com.boostworthy.utils.logger.LogLevel


Protected Properties
 PropertyDefined by
  m_strName : String
Stores this logs name.
Log
  m_uLevel : uint
Stores this logs level.
Log
Public Methods
 MethodDefined by
  
Log(strName:String, uLevel:uint)
Constructor.
Log
  
debug(strMessage:String):void
Logs a debug message.
Log
  
getLevel():uint
Gets the currently set log level.
Log
  
getName():String
Gets the name of this log.
Log
  
info(strMessage:String):void
Logs an info message.
Log
  
setLevel(uLevel:uint):void
Sets the log level for this log.
Log
  
severe(strMessage:String):void
Logs a severe message.
Log
  
warning(strMessage:String):void
Logs a warning message.
Log
Protected Methods
 MethodDefined by
  
createOutputMessage(strMessage:String, uLevel:uint):String
Creates a message for output based on the specified message and log level.
Log
  
getLevelName(uLevel:uint):String
Gets the name of the specified log level.
Log
  
init(strName:String, uLevel:uint):void
Initializes this object.
Log
  
output(strMessage:String, uLevel:uint):void
Outputs a runtime message for the specified log level, assuming the level is allowed.
Log
Property detail
m_strNameproperty
protected var m_strName:String

Stores this logs name.

m_uLevelproperty 
protected var m_uLevel:uint

Stores this logs level.

See also

Constructor detail
Log()constructor
public function Log(strName:String, uLevel:uint)

Constructor.

Parameters
strName:String
 
uLevel:uint
Method detail
createOutputMessage()method
protected function createOutputMessage(strMessage:String, uLevel:uint):String

Creates a message for output based on the specified message and log level.

Parameters
strMessage:String — The message for output.
 
uLevel:uint — The log level of the output message.

Returns
String — The original message with some additional formatting for output.

See also

debug()method 
public function debug(strMessage:String):void

Logs a debug message.

Parameters
strMessage:String — The message to log.
getLevel()method 
public function getLevel():uint

Gets the currently set log level.

Returns
uint — The currently set log level.

See also

getLevelName()method 
protected function getLevelName(uLevel:uint):String

Gets the name of the specified log level.

Parameters
uLevel:uint — The log level in which to find the name of.

Returns
String — The name of the specified log level.
getName()method 
public function getName():String

Gets the name of this log.

Returns
String — The name of this log.
info()method 
public function info(strMessage:String):void

Logs an info message.

Parameters
strMessage:String — The message to log.
init()method 
protected function init(strName:String, uLevel:uint):void

Initializes this object.

Parameters
strName:String
 
uLevel:uint
output()method 
protected function output(strMessage:String, uLevel:uint):void

Outputs a runtime message for the specified log level, assuming the level is allowed.

Parameters
strMessage:String — The message to output.
 
uLevel:uint — The log level of the output message.

See also

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

Sets the log level for this log.

Parameters
uLevel:uint — The log level in which to allow output from.

See also

severe()method 
public function severe(strMessage:String):void

Logs a severe message.

Parameters
strMessage:String — The message to log.
warning()method 
public function warning(strMessage:String):void

Logs a warning message.

Parameters
strMessage:String — The message to log.