Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Tools
Tools.Testsuite

Method Tools.Testsuite.log_status()


Method log_status

void log_status(string msg, mixed ... args)

Description

Logs a testsuite status message. This is suitable for nonimportant progress messages.

  • If the verbosity is 0 then nothing is logged, but the message is saved and will be logged if the next call is to log_msg .

  • If the verbosity is 1, the message is "in place" on the current line without a trailing line feed, so that the next message will replace this one.

  • If the verbosity is 2 or greater, the message is logged with a trailing line feed.

The message should be short and not contain newlines, to work when the verbosity is 1, but if it ends with a newline then it's logged normally. It can be an empty string to just clear the last "in place" logged message - it won't be logged otherwise.

See also

log_twiddler