print (JavaScript)

Prints a string to the log file.

Defined in

Top-level functions (JavaScript)

Syntax

print(string)
Parameter Description
string Any string. Conversion occurs as required.

Usage

The log is console.log on the server (for example, C:\Notes\Data\IBM_TECHNICAL_SUPPORT\console.log).

Examples

The following example defines a function that prints to the log file.
function p(stuff) {
	print("<<<" + stuff + ">>>");
}

function f(par1) {
	p("par1 = " + par1);
}

p("Call function f");
f(-1);