IR Framework

Application.logger Class

Creates a logger object.
[Application.]logger ([LogLevel[, Target[, Verbose]]])

Arguments

LogLevel
Optional. The initial log level for the logger. If omitted, logging is off. For specific values, see documentation for Log Levels


Target
Optional. The path and name of the log file. This can be a local path or a UNC path.
If only a file name is given, the My Documents folder is used.
Keywords "alert" or "console" can be used to log to an Alert box or to the Console window, respectively.


Verbose
Optional. Boolean.
Value Log Entry Format Example
true
09/19/2013 12:33:00	message
false
09/19/2013 12:33:00	UserName	ComputerName	DesktopClient
C:\ScriptTester.bqy
[url or undefined]
message



Return Value

The Application.logger class returns a logger object that can be used to write log entries.



Requirements