FrontPage 

Fuego wiki

Login or create account

function wprint in 'raw' format

= NAME =
wprint

= SYNOPSIS =
 * wprint "message"

= DESCRIPTION =
This function outputs the message, if the log level is set to 'warning'
or anything lower, for the current area of Fuego test execution.
This function should be used to indicate a non-fatal condition that may
require user consideration or action.

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

Any shell variables can be output as part of the message, as
well as any information that might be helpful to address the warning.

This routine will add an extra prefix to the message, to draw attention to
this message in the console log for the test run.  The prefix is:
"### WARNING:".


= EXAMPLES =
Here is a sample invocation:
{{{#!YellowBox
    wprint "Something is not right...."
}}}

This would output:

{{{
### WARNING: Something is not right...
}}}

= ENVIRONMENT and ARGUMENTS =
This function is controlled by the value of FUEGO_LOGLEVELS.

= RETURN =
Returns 0

= SOURCE =
Located in ''scripts/common.sh''

= SEE ALSO =
 * [[function_dprint|dprint]], [[function_vprint|vprint]], [[function_iprint|iprint]], [[function_eprint|eprint]]

TBWiki engine 1.8.3 by Tim Bird