Class org.as2lib.env.log.MtascUtil

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.MtascUtil

Description

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 (...)
 

Field Index

DEBUG, ERROR, FATAL, INFO, WARNING

Method Index

log(), logByDefaultLevel(), logByLevel()

Inherited from BasicClass

toString()

Field Detail

DEBUG

static public DEBUG:Number
Debug level output.

INFO

static public INFO:Number
Info level output.

WARNING

static public WARNING:Number
Warning level output.

ERROR

static public ERROR:Number
Error level output.

FATAL

static public FATAL:Number
Fatal level output.

Method Detail

log

static public function log():Void

logByDefaultLevel

static public function logByDefaultLevel(message:Object, className:String, fileName:String, lineNumber:Number):Void

Logs the message at default level INFO.

Parameters

messagethe message to log
classNamethe name of the class that logs the message
fileNamethe name of the file that declares the class
lineNumberthe line number at which the logging call stands

logByLevel

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.

Parameters

messagethe message to log
classNamethe name of the class that logs the message
fileNamethe name of the file that declares the class
lineNumberthe line number at which the logging call stands