Access keys

MtascUtil

Kind of class: class
Inherits from: BasicClass
Author: Simon Wacker
Classpath: org.as2lib.env.log.MtascUtil
File last modified: Saturday, 28 May 2005, 17:59:52
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 (...)

Summary

Class properties
Instance methods
Instance methods inherited from BasicClass

Class properties

DEBUG

static DEBUG:Number = 2
(read,write)
Debug level output.

ERROR

static ERROR:Number = 5
(read,write)
Error level output.

FATAL

static FATAL:Number = 6
(read,write)
Fatal level output.

INFO

static INFO:Number = 3
(read,write)
Info level output.

WARNING

static WARNING:Number = 4
(read,write)
Warning level output.

Class methods

logByDefaultLevel

static function logByDefaultLevel (
message:Object, className:String, fileName:String, lineNumber:Number) : Void
Logs the message at default level INFO.
Parameters:
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
See also:

logByLevel

static 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, #INFO 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.

Parameters:
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