org.as2lib.core.BasicClass +--org.as2lib.env.log.MtascUtil
MtascUtil
offers support for MTASCs extraordinary trace functionality that
does not only allow for multiple arguments but also passes information like the
class name, the file name and even the line number.
Usage:
mtasc -trace org.as2lib.env.log.MtascUtil.log Test.as (...)
static public DEBUG:Number
static public INFO:Number
static public WARNING:Number
static public ERROR:Number
static public FATAL:Number
static public function logByDefaultLevel(message:Object, className:String, fileName:String, lineNumber:Number):Void
Logs the message
at default level INFO.
message | the message to log |
className | the name of the class that logs the message
|
fileName | the name of the file that declares the class |
lineNumber | the line number at which the logging call stands |
static public function logByLevel(message:Object, level:Number, className:String, fileName:String, lineNumber:Number):Void
Logs the message
at the specified level
.
If this level is none of the declared ones, is used. This is
also the case if
level
is null
or undefined
.
The message
is logged using a logger returned by the
LogManager.getLogger method passing-in the given className
. The
extra information is passed to the specific log methods as further arguments.
message | the message to log |
className | the name of the class that logs the message
|
fileName | the name of the file that declares the class |
lineNumber | the line number at which the logging call stands |