print "(string)"

This construct logs a string, phrase, or rule name.

Purpose

You use this construct to define an action phrase that by default logs a string.

Syntax

print "<string>";

Description

The print construct is used in the action part of the rule.

By default, this construct logs a string at the INFO level. As a result, the output is logged in the trace.log and messages.log files. You can override the level by setting the solution property RuleAgentPrintLogLevel to one of the following values: SEVERE, WARNING, AUDIT, INFO, FINE, FINER, FINEST, or OFF.

Example

The following action logs the string "Hello World!".

print "Hello World!";