Packagenet.flashmog
Classpublic class Log

this class encapsulates logging functions so that you can redefine them to write a text file, query a server, write a socket, or whatever makes it easier for you to develop and debug



Public Methods
 MethodDefined by
  
Log(logThreshold:Number = -1, name:String = "")
Constructor function
Log
  
write(msg:String, level:Number = -1):void
Write a message to the log if the importance level of the message is suffucient.
Log
Public Constants
 ConstantDefined by
  CRITICAL : Number = 3
[static]
Log
  HIGH : Number = 2
[static]
Log
  LOW : Number = 0
[static]
Log
  MEDIUM : Number = 1
[static]
Log
Constructor detail
Log()constructor
public function Log(logThreshold:Number = -1, name:String = "")

Constructor function

Parameters
logThreshold:Number (default = -1) — logThreshold Specifies verbosity of log
 
name:String (default = "") — name a name for this log which is prepended to all messages
Method detail
write()method
public function write(msg:String, level:Number = -1):void

Write a message to the log if the importance level of the message is suffucient. This function delegates the message to the writeLog method if the value of 'level' exceeds the log's threshold value. It also prepends the date and log name

Parameters
msg:String — name the message to be communicated
 
level:Number (default = -1) — level specifies the importance of the message
Constant detail
CRITICALconstant
public static const CRITICAL:Number = 3
HIGHconstant 
public static const HIGH:Number = 2
LOWconstant 
public static const LOW:Number = 0
MEDIUMconstant 
public static const MEDIUM:Number = 1