IR Framework

logger.LEVEL Constants

Contains the constant values for the log level of a logger object.
object.LEVEL.ALL
object.LEVEL.TRACE
object.LEVEL.DEBUG
object.LEVEL.INFO
object.LEVEL.WARN
object.LEVEL.ERROR
object.LEVEL.FATAL
object.LEVEL.OFF

Arguments

object
Required. Always the name of a logger object.



Remarks

The following example illustrates the use of the LEVEL constants.

//	create a logger and set the level to DEBUG and write entries to the Console window
var myLogger = new Application.logger();
myLogger.Level(myLogger.LEVEL.DEBUG);

myLogger.trace("trace");	//	TRACE is lower than DEBUG, so this won't do anything
myLogger.debug("debug");
myLogger.error("error");


//	make the logger write entries to My Documents\mylog.log
myLogger.Target("mylog.log");

myLogger.trace("trace");	//	TRACE is lower than DEBUG, so this won't do anything
myLogger.debug("debug");
myLogger.error("error");


Applies To:

logger Object



Requirements