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 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
|
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
|
public static const CRITICAL:Number = 3
public static const HIGH:Number = 2
public static const LOW:Number = 0
public static const MEDIUM:Number = 1
FlashMOG Client Source