IR Framework

logger Object

Object that manages the writing of log entries.

Remarks

A logger object allows the developer to write log entries to arbitrary locations.

The following code illustrates how to create an logger object:

//	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");


Methods

trace Method | debug Method | info Method | warn Method | error Method | fatal Method



Properties

Level Property | Target Property | Verbose Property | LEVEL Constants



See Also

logger Class