function_iprint 

Fuego wiki

Login or create account

function iprint

NAME [edit section]

iprint

SYNOPSIS [edit section]

  • iprint "message"

DESCRIPTION [edit section]

This function outputs the message, if the log level is set to 'info', 'verbose', or 'debug' for the current area of Fuego test execution. The default log level, if none is specified by FUEGO_LOGLEVEL, is 'info'. So these messages will be output by default in normal Fuego operation.

See FUEGO_LOGLEVELS to see how the log level may be set.

Any shell variable can be output as part of the message.

In most cases, we desire the console log for a test to be somewhat sparse. This is so that the user does not get used to ignoring the output in the console log. For this reason, this function should be used somewhat sparingly.

Debug messages should be output using dprint, and progress and status messages should be output using vprint.

EXAMPLES [edit section]

Here is a sample invocation:
        iprint "Preparing to execute test..."

ENVIRONMENT and ARGUMENTS [edit section]

This function is controlled by the value of FUEGO_LOGLEVELS.

RETURN [edit section]

Returns 0

SOURCE [edit section]

Located in scripts/common.sh

SEE ALSO [edit section]

TBWiki engine 1.8.3 by Tim Bird